Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Login system error after upgrade to 1.5.1
  • Hi,

    I have upgraded to 1.5.1 by downloading the zip file and replacing the apporpriate directories. I am getting an error message when I try and use the login and authentication system. I think its a file permissions issue but not really sure ( also the error message is displaying with no css or formatting and appears as random text on the page):


    Fatal error: Uncaught exception 'Fuel\Core\PhpErrorException' with message 'file_put_contents(/home/user/Sites/app/fuel/app/../cache/FuelFileFinder.pathcache): failed to open stream: Permission denied' in /home/user/Sites/app/fuel/core/classes/finder.php on line 497
    Fuel\Core\PhpErrorException: file_put_contents(/home/user/Sites/app/fuel/app/../cache/FuelFileFinder.pathcache): failed to open stream: Permission denied in /home/user/Sites/app/fuel/core/classes/finder.php on line 497
    Call Stack: 0.1812 5284312 1. {closure:/home/user/Sites/app/fuel/core/bootstrap.php:30-37}() /home/user/Sites/app/fuel/core/bootstrap.php:0 0.1812 5284312 2. Fuel\Core\Event::shutdown() /home/user/Sites/app/fuel/core/bootstrap.php:33 0.1813 5284584 3. Fuel\Core\Event_Instance->trigger() /home/user/Sites/app/fuel/core/classes/event.php:75 0.1815 5285936 4. call_user_func() /home/user/Sites/app/fuel/core/classes/event/instance.php:163 0.1816 5285968 5. Fuel\Core\Fuel::finish() /home/user/Sites/app/fuel/core/classes/event/instance.php:163 0.1816 5286052 6. Fuel\Core\Finder->write_cache() /home/user/Sites/app/fuel/core/classes/fuel.php:206 0.1816 5286052 7. Fuel\Core\Finder->cache() /home/user/Sites/app/fuel/core/classes/finder.php:398 0.1817 5288184 8. file_put_contents() /home/user/Sites/app/fuel/core/classes/finder.php:497 0.1817 5291524 9. Smarty::mutingErrorHandler() /home/user/Sites/app/fuel/core/classes/finder.php:497 0.1819 5292608 10. call_user_func() /home/user/Sites/app/fuel/app/vendor/Smarty/libs/Smarty.class.php:1422 0.1819 5292652 11. {closure:/home/user/Sites/app/fuel/core/bootstrap.php:45-49}() /home/user/Sites/app/fuel/app/vendor/Smarty/libs/Smarty.class.php:1422 0.1849 5526832 12. Fuel\Core\Error::error_handler() /home/user/Sites/app/fuel/core/bootstrap.php:48
  • WanWizardWanWizard
    Accepted Answer
    You haven't set the required file rights properly. The cache folder isn't writable.

    FuelPHP requires the following paths to be writeable:
    - the cache folder (default app/cache)
    - the logs folder (default app/logs)
    - the config folder (default app/config)
    - the tmp folder (default app/tmp)
  • I am using the depot project structure so the logs directory is located at fuel/logs/ not fuel/app/logs. Do I need to move the logs to fuel/app?
  • WanWizardWanWizard
    Accepted Answer
    No, it doesn't matter where they are. I just listed the default locations.

    Just make sure the webserver has write access to these locations.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion