clampdown Posted April 7, 2016 Share Posted April 7, 2016 Hello,I'm currently getting an "Unexpected Token W" error when attempting to upload images, i've searched the forums but only found "Unexpected Token >" answers...This is my error log PHP Warning: file_put_contents(/var/www/vhosts/domain.co.uk/httpdocs/modules/gamification/data/data_EN_GBP_GB.json): failed to open stream: Permission denied in /var/www/vhosts/domain.co.uk/httpdocs/modules/gamification/gamification.php on line 307 PHP Warning: imagejpeg(/var/www/vhosts/domain.co.uk/httpdocs/img/p/3/4/1/3/3413.jpg): failed to open stream: No such file or directory in /var/www/vhosts/domain.co.uk/httpdocs/classes/ImageManager.php on line 477 I've tried changing permissions on gamification.php to 775 - that didn't workLine 477 of ImageManager.php is as follows: $success = imagejpeg($resource, $filename, (int)$quality); The image i'm attempting to upload is a jpeg so I can't quite understand why this error is happening.Thank you for any help in advance . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now