Image upload problem
-
Hi, I really hope someone can help me here. Spent days now searching for an answer.
I have 6 web sites on the same server and one of them has a serious problem. I can not upload files to Media over 2M. I know about this problem and managed to fix it on all the other web sites. Searched on the net but nothing helps.
My server php.ini is set to max/upload size of 100M.
I tried all of the tweets I read on the internet. Still not work. I installed a memory expand plugin, did not help.
I have had no problems with this for a long time. I have upgraded the three latest WordPress, now have 5.5.
Tried to deactivate all plugins and tried to change to another theme. No difference.
Here are some hints:
Trying to upload a file in my theme upload function: <p>There has been a critical error on your website.</p><p>Learn more about debugging in WordPress.</p>
This is the debug file: [17-Aug-2020 06:27:18 UTC] PHP Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/th4sale/public_html/wp-content/themes/adforest/inc/theme_shortcodes/classes/ad_post.php:678
Stack trace:
#0 /home/th4sale/public_html/wp-includes/class-wp-hook.php(287): adforest_upload_ad_images()
#1 /home/th4sale/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /home/th4sale/public_html/wp-includes/plugin.php(478): WP_Hook->do_action()
#3 /home/th4sale/public_html/wp-admin/admin-ajax.php(176): do_action()
#4 {main}
thrown in /home/th4sale/public_html/wp-content/themes/adforest/inc/theme_shortcodes/classes/ad_post.php on line 678
[17-Aug-2020 13:34:33 Asia/Bangkok] PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/th4sale/public_html/wp-content/plugins/sb_framework/ad_post/custom-category-templates.php on line 391
[17-Aug-2020 13:34:33 Asia/Bangkok] PHP Notice: Trying to get property ‘display_name’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 25
[17-Aug-2020 13:34:33 Asia/Bangkok] PHP Notice: Trying to get property ‘user_email’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 29
[17-Aug-2020 13:34:44 Asia/Bangkok] PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/th4sale/public_html/wp-content/plugins/sb_framework/ad_post/custom-category-templates.php on line 391
[17-Aug-2020 13:34:45 Asia/Bangkok] PHP Notice: Trying to get property ‘display_name’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 25
[17-Aug-2020 13:34:45 Asia/Bangkok] PHP Notice: Trying to get property ‘user_email’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 29
[17-Aug-2020 13:34:56 Asia/Bangkok] PHP Notice: Trying to get property ‘display_name’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 25
[17-Aug-2020 13:34:56 Asia/Bangkok] PHP Notice: Trying to get property ‘user_email’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 29
[17-Aug-2020 13:35:06 Asia/Bangkok] PHP Notice: Trying to get property ‘display_name’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 25
[17-Aug-2020 13:35:06 Asia/Bangkok] PHP Notice: Trying to get property ‘user_email’ of non-object in /home/th4sale/public_html/wp-content/themes/adforest/template-parts/layouts/ad_style/message-seller.php on line 29
Trying to upload a 6M image to WordPress Media:
Maximum upload file size: 32 MB.
Dismiss“Showroom 2.jpg” has failed to upload.
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Files under 2M work just fine.Trying to update Woocommerce Plugin:
Update failed: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.
Absolutely no file permission error.
Now I do not have any clues left. Anyone? Is it the WordPress upgrade?Have a nice day/Jan
The page I need help with: [log in to see the link]
- The topic ‘Image upload problem’ is closed to new replies.