• Hi
    Having a problem with uploading large files to Media. My theme also has the same problem stating “critical error”, see below.
    Media – Add new show memory limit is 64MB, after I installed a plugin.
    Disabled plugins, increased max upload and file size to 64MB in server php.ini. Created a php.ini in root, added define in wp-config and more. Nothing helps.
    I still can upload only under 2 MB. When bigger, get the “critical error”.

    
    [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
    

    Have a nice day/Jan

    • This topic was modified 4 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter zappoboy

    (@zappoboy)

    New information
    When trying to upload an image, 8Mb, to wordpress media library I get this message:

    “The uploaded file exceeds the upload_max_filesize directive in php.ini.”

    The Apache servers php.ini is set to upload_max_filesize = 64M

Viewing 1 replies (of 1 total)
  • The topic ‘Upload images problem’ is closed to new replies.