Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

PDO, sake problems


Go to End


3 Posts   2766 Views

Avatar
haswalt

Community Member, 16 Posts

22 October 2008 at 4:51am

Edited: 22/10/2008 4:54am

Hi,

im' trying you version 2.3 and playing with the new command line sake. Whenever i try to run it i get the following error:

PHP Fatal error: PDO: driver oci requires PDO API version 20060409; this is PDO version 20060511 in Unknown on line 0

Does everything go through PDO now? If not why is this being a problem since PDO should never be called.

I'm using a pretyt much clean install on MySQL.

Harry

Avatar
Willr

Forum Moderator, 5523 Posts

22 October 2008 at 10:45pm

I think some of geoff's PDO abstraction may have made it back into 2.3 though Im not sure. Seems like the newer version of PDO may break SS as your error says. Can you run db/build/ and any of the dev/ tools via the webbrowser rather then sake? Does it work then

Avatar
haswalt

Community Member, 16 Posts

23 October 2008 at 3:07am

/dev works fine in the browser, it's literally a command line issue.

I have found that if you don't have $_FILE_TO_URL_MAPPING set in a _ss_environment.php file, the error still displays but the commands work.

With this set it shows the error and quits immediately.

Harry