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

Fatal error, once uploaded on a live host running PHP5.5 #53

Closed
AndiKod opened this issue Sep 12, 2014 · 2 comments
Closed

Fatal error, once uploaded on a live host running PHP5.5 #53

AndiKod opened this issue Sep 12, 2014 · 2 comments
Labels

Comments

@AndiKod
Copy link

AndiKod commented Sep 12, 2014

I'm sure it's not really a "Grav Issue" or bug, as it runs like a charm locally, but have no idea on why have I a "fatal error" once uploaded.

Context : A basic shared hosting plan (yup, I know, there are better sollutions), but that server running PHP 5.5 and obviously Apache as almost everywhere.

Localhost : on MAMP, the local server, all was just a breeze and worked perfectly.

Remote Host : But ... when I upload my work, or even a full copy of a fresh install of Grav, I have "the non-oject error" as follow :

Fatal error: Call to a member function get() on a non-object in /home/host/www/folder/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php on line 69

PS: Tested also with PHP5.4 on the remote host with the same result.
I hope I'll find a way to make that work as I'm quite enthousiast with Grav and what it can do ... and the huge potential of it for the future.

@rhukster
Copy link
Member

This was something we fixed in Develop but has not released as a package yet.

If you are not up to installing from Git, the quick fix is to simply update your system/src/Grav/Common/Cache.php file with the one in the develop branch:

https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Cache.php

@AndiKod
Copy link
Author

AndiKod commented Sep 12, 2014

Grav is Running!
You have installed Grav successfully


Thanks a lot for the fix and all the work.
I'll try to write some code around Grav, plugins, etc.

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

No branches or pull requests

3 participants