Git Product home page Git Product logo

Comments (9)

raftalks avatar raftalks commented on July 21, 2024

can u paste the SQL error message

from ravel.

bobrocke avatar bobrocke commented on July 21, 2024

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?

from ravel.

raftalks avatar raftalks commented on July 21, 2024

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+

from ravel.

raftalks avatar raftalks commented on July 21, 2024

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

from ravel.

bobrocke avatar bobrocke commented on July 21, 2024

I'm running MySQL 5.5.29 via MAMP Pro.

from ravel.

raftalks avatar raftalks commented on July 21, 2024

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'

from ravel.

bobrocke avatar bobrocke commented on July 21, 2024

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?

from ravel.

raftalks avatar raftalks commented on July 21, 2024

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.

from ravel.

bobrocke avatar bobrocke commented on July 21, 2024

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

from ravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.