Posts Tagged ‘Codeigniter’

stat failed filemtime() Codeigniters assetlib-pro on a plesk server

Thursday, January 28th, 2010

I came across this error when I was trying to implementing the Assetlib-pro CodeIgniter library for adding assets etc to your project.

A PHP Error was encountered

Severity: Warning

Message: filemtime() [function.filemtime]: stat failed for
/var/www/vhosts/domain.com/assets/styles_1.css

Filename: libraries/Assetlibpro.php

Line Number: 218

Now because of my setup from EukHost in the uk I use plesk as my admin system, which obviously has custom rules etc for how php and apache behave together and how they are setup. For some reason the assetlib code could correctly get to the styles I had defined in the assetlib config file – ‘/assets/’, but I had to manually change a line of code in the assetlib library file.

(more…)

Disallowed Key Characters – CodeIgniter Error

Sunday, January 17th, 2010

Getting the error “Disallowed Key Characters” ? This error was caused by developing locally on my machine (127.0.0.1) with xampp, i used the windows host file to re-direct halodev.snaver.net to my local web server for development. However when i switched to developing online, i removed the host file config for the domain and then upload my website to my server, this is when i got the error.

To fix i had to clear my cookies, i believe it was a cookie problem as i also changed my unique $config['encryption_key'] in the config file.