Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ravel Admin Freezes in Laravel #28

Open
bobrocke opened this issue Aug 22, 2013 · 9 comments
Open

Ravel Admin Freezes in Laravel #28

bobrocke opened this issue Aug 22, 2013 · 9 comments

Comments

@bobrocke
Copy link

I installed Ravel with composer and that seemed to work fine. When I go to mysite.com/admin I can log into Ravel and see the admin interface. But when I click on the Dashboard tab, I get a view with a spinner at the top that never loads any content.

When I click the Media tab I get a big SQL state error message, briefly, at the top.

How do I get Ravel working?

Bob

@raftalks
Copy link
Owner

can u paste the SQL error message

@bobrocke
Copy link
Author

SQLSTATE[HY000]: General error: 1 no such function: if (SQL: select *, if(user_id = 2,"private","shared") as type from "mcollections" where "user_id" = ? or ("shared" = ?) limit 10 offset 0) (Bindings: array ( 0 => '2', 1 => 1, ))

Would that also explain the stall on the Dashboard tab?

@raftalks
Copy link
Owner

I haven't finished the dashboard and since there are no controllers and no service requests, the ajax loader is displayed.

As for the SQL error, seems like your MySQL version is not supporting the Control Flow Function IF()
http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html#function_if

Can you tell me your MySQL version ? RavelCMS Requires MySQL 5.0+

@raftalks
Copy link
Owner

I think I should probably avoid that line of SQL to make it comply with other databases via PDO.

@bobrocke
Copy link
Author

I'm running MySQL 5.5.29 via MAMP Pro.

@raftalks
Copy link
Owner

Thats strange, I can't seem to replicate the same issue. Did you add a collection to the media, or is that error shown straight after you have clicked to Media ?

Can you check if the database table 'mcollections' exists? Also make sure you are using MySQL by checking the app/config/database.php file where the array key for 'default' should be 'mysql'

@bobrocke
Copy link
Author

I get the error immediately after clicking on the Media tab. No collections have yet been added.

The table mcollections does exist.

BUT, I am running Laravel 4 locally with a SQLite database!

Must I be running MySQL to use Ravel?

@raftalks
Copy link
Owner

Yes, that is the issue. You will need to use MySQL to use Ravel as of now, as I need to remove some of those SQL query statements to make it work with other databases.

@bobrocke
Copy link
Author

OK, I'll try that next. I thought the Laravel environment was pretty database agnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants