Please note I am using version 3.0 of Ultimate PDF FlipBook.
Looking at the apache.log I see the 404 errors, my browser console also shows errors accessing uploads/flipbooks directory.
Also what does this error mean?…
Ultimate PDF Flipbooks is unable to adjust folder permissions and might cause errors in Flipbooks Loading, Please contact your Hosting Provider or the Plugin Author for further information, about this error.
Please advise
Getting “Error” No upload php file found or incorrect file. Using WordPress 5.4. Shortcode: [upfb_ebook book_id=”1902″ allow-download=”false” thumbnails=”false” classes=”” slideshow=”yes” allow-fullscreen=”yes” page-layout=”auto” width=”100%” height=”500px”]
Is WordPress 5.4 the problem?
No, WordPress is not the problem. I found out the issue on my own and its Linux file permissions and ownership. I usually log in as root and move/copy files as root.
You need to change file ownership and/or permissions of the upload directory. To do this use:
chown -R www-data:www-data uploads
Where ‘-R’ means recursive and ‘www-data’ is the apache2 user/group.
Also this will probably work… chmod -R 777 uploads
…I can’t say which is best.
beware that chmod 777 allows EVERYONE to modify these directories which on a real deployment can cause BIG problems!
To check the apache2 user use… ps -aux | grep apache2
After you modify your owner/permissions, I deleted the flipbook pdf file I made and created a new one with the new ownership. I then used the new shortcode.
I did this on my development server at home and it worked fine, when you deploy to a public server, check with the sys admin for correct owner/permissions.
For more information search for errors on upload.php and similar issues on wordpress.
Also before and after, use this command to monitor file access, it will tell you what the web server is failing on.
tail -f /var/log/apache2/access.log
Anyone who is facing any error with the No Upload.php Found, its because of the PHP’s restricted access to execute a code in your Uploads Directory.
Mostly this error is faced with 1&1 Hosting, which blocks the code execution in the Upload’s directory and for some VPS or Cloud instances, it can be fixed by changing the file permissions of your WordPress Uploads Directory located at: /wp-content/uploads/