attempt to write JS file fails (permissions)
-
Hi, thanks for your support in the past.
[25-Jan-2020 19:51:36 UTC] PHP Warning: fopen(/home/lamp/wordpress/plugins/wp-photo-album-plus/dynamic/wppa-init.en.js): failed to open stream: Permission denied in /h
ome/lamp/wordpress/plugins/wp-photo-album-plus/wppa-wrappers.php on line 212The reason is that we don’t allow apache any write access to plugins (nor themes, nor core). Mainly for discouraging hackers. We update plugins using SVN in root cron. I guess there is no fix for this, but do you have any suggestions?
-
Pls verify the page source now contains:
<script type="text/javascript" > /* Warning: file wppa-init.en.js could not be created */ /* The content is therefor output here */ . . . . </script>If so, everything should work ok, but is not optimal.
Make
/plugins/wp-photo-album-plus/dynamic/accessable (chmod and/or .htaccess)I will change the location of dynamic/ to ../uploads/wppa/dynamic in the next version.
Thanks very much for the proposed change to the dynamic directory location.
Yes I can see that in the source code now – I’m running 7.3.04.004
and the gallery displays properly.I still see the error in PHP log, but that will be fixed when the temp directory moves.
Thanks again!
BTW. Make sure you do NOT untick Table IV-A14: Inline styles, until you have the fix installed. Doing so would also attempt to create a file in the dynamic folder, and there is no workaround for that, so it would damage your lay-out.
Once you have the fix version, you may untick it, although not recommended.Fixed 7.3.05.010
Support for this plugin is phenominal. I’m running 7.3.05.010 now. SVN update straight from WP repository.
The topic ‘attempt to write JS file fails (permissions)’ is closed to new replies.