Skip Navigation

[Escalated to 2nd Tier] Forms 2.4 media library use not working with Amazon S3

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 26 replies, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1285487

We use Amazon S3 for media storage. If we allow users to see the media library and upload a file that way (within a form), the image is uploaded fine to the media library (and S3) but does not get recorded as the featured image for the post (which remains empty). If we uncheck the option "Use the WordPress Media Library manager for image, video, audio, or file fields" and revert to how images were uploaded before Forms 2.4 then all works fine and the image is in S3 and attached to the post.

#1285831

Hello,

I assume we are talking about the "WP Offload Media Lite" plugin in your website
It seems to be a compatibility problem, please check these:
1) deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide a copy of your website, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1285921

Thanks.

I just want to be clear that WP Offload Media Lite has no compatability problem with Toolset Forms 2.4 if one uses the "old" , method for upload media files (which doesn't involve the WordPress Media Library option) and there is no issue if one uses the backend creation method for a post so this does seem isolated to the new feature in Toolset Forms 2.4 to use the Media library screen.

The images end up in S3 fine but they simply don't attach to the post if using Forms 2.4 with the new option for the Media Library. Surely this is a Toolset Forms issue?

My feeling is that Toolset Forms really ought to be capable of use with WP Offload Media Lite because it is rally the only way most people can implement storage of media on Amazon S3. Could I ask that you investigate compatability please?

I can roll back all plugins and themes as you suggest but this will take several days. Please enable private on the next reply.

#1286029

I can try to locate the problem in your website, please try these:
1) Backup your website first, I will need to deactivate
2) Provide your website credentials and FTP access in below private message box, also point out the problem page URL and form URL

You can also duplicate the same problem in a test site, and provide the test site information.

#1286987

Thanks for the details, I can log into your website.

Where can I see the problem as you mentioned above?
Please point out the problem page URL and form URL.

And please backup your website first, since it is a compatibility issue, I might need to deactivate plugins/theme in your website.

#1287061

Thanks.

You can see the problem in any of the content creation forms if you are logged in at hidden link by going to Content>Create, for example hidden link

I have backed up the site

#1287085

Thanks for the details, I have tried it in your website, can see the problem as you mentioned above:
If we allow users to see the media library and upload a file that way (within a form), the image is uploaded fine to the media library (and S3) but does not get recorded as the featured image for the post

But you are using 87 plugins in your website, and the FTP access you provided is not valid, I get this error message:
Failed to retrieve directory listing

Since it is a live production website, I don't think it is a good idea to debug the problem in it.

Did you get any PHP error debug logs?
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

Can you share them here?

And since it is a compatibility problem, I suggest you try these:
1) Duplicate the same problem in a test site with fresh WordPress installation + the latest version of "WP Offload Media Lite" plugin + Toolset Forms plugin, then share the test site credentials and FTP access in below private message box

2) provide a copy of the test site, provide detail steps to duplicate the same problem, for example:
How to setup the "WP Offload Media Lite" plugin? does it need some special setting or amazon s3 settings?

Thanks

#1287899

I have looked at the PHP error file and although there is a longstanding issue caused by a plugin update in May, there is nothing to suggest PHP errors. The particular error occurs only on the hour every hour.

[09-Jul-2019 12:00:01 UTC] PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/vhosts/radioverulam.com/httpdocs/wp-includes/load.php on line 16
[09-Jul-2019 13:00:01 UTC] PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/vhosts/radioverulam.com/httpdocs/wp-includes/load.php on line 16
[09-Jul-2019 14:00:01 UTC] PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/vhosts/radioverulam.com/httpdocs/wp-includes/load.php on line 16
[09-Jul-2019 15:00:01 UTC] PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/vhosts/radioverulam.com/httpdocs/wp-includes/load.php on line 16
[09-Jul-2019 16:00:01 UTC] PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/vhosts/radioverulam.com/httpdocs/wp-includes/load.php on line 16

I will try to make a copy of the site but it is very large

#1288295

The debug logs you mentioned above is not related with this issue.

As I suggested above, you can try to duplicate the same problem in another test site, with only Toolset Plugins + Amazon S3 plugin, and provide detail steps + duplicator package, it won't be large.

#1288953

Thanks. I am really struggling to create a cloned site which is responsive enough but bear with me

#1289221

OK, please update here when your test site is ready for debug, thanks

#1289577

I now have a working copy of the site and have moved to the 2019 theme and disabled all but Tooklset and Media Offload lite plugins. The same issue exists with the media url being rewritten to Amazon S3 but the image not being attached to the post.

If you enable private I can share access details

#1289713

We have now also tested this on the live site replacing the WP Offload Media plugin with the Media Cloud plugin and had the same issue.

#1290137

I have enabled the private message box, please provide the test site's credentials and duplicator package in it, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1291339

Thanks for the details, I am checking it in your website, will update here if there is any found