• Resolved maxhouse

    (@maxhouse)


    When I’m trying to create new photo galleries it fails to upload the photos or add them from the media library. Even though it was addressed previously several times the issue remains unresolved. I would really appreciate if you could fix this bug for us. Thank you.

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    We apologize for the inconvenience. With a bit detailed information, we can help you resolve this problem. Could I please ask you to activate WordPress debugging and check for PHP errors, notices or warnings related to the product?

    You can activate debugging the following way.

    Access your website files using FTP connection and open wp-config.php file.
    Look for the following line:

    define( ‘WP_DEBUG’, false );
    Change false into true, so the line looks like this:

    define( ‘WP_DEBUG’, true );

    If the line is not present in the file, simply add it to the bottom of wp-config.php and save it.

    Afterwards, please have a look at WordPress administrative dashboard and your website front for PHP errors, warnings, notices, and send them to us. They will help us identify the problem.

    Please let me know in case you will have questions.

    Thank you in advance!

    Have a nice day!

    Thread Starter maxhouse

    (@maxhouse)

    Hi kimabaghdasaryan,

    I have no idea what is an FTP connection and how to access it. Could you be more detailed about the steps, please?

    Regards

    I am having the same issue. WP_DEBUG is true. There are no errors reported either on the dashboard nor in the error_log. There was an error in the console “Failed to load resource: the server responded with a status of 500 (Internal Server Error) wp-admin/admin-ajax.php?bwg_nonce=b820b8beaf&action=bwg_UploadHandler&dir=/

    I’m working this with a client. Not sure when the last time they tried to upload an image. They are running the latest version of the plugin 1.5.21.

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    When uploading the images, Ajax is sending requests and they are appearing in Devtool > Console > Network > XHR. Please check if you have any errors there when uploading the images. See the screenshot.

    Thank you!

    Have a nice day!

    Yes, we are getting an error here.

    Request URL: <<domain>>/wp-admin/admin-ajax.php?bwg_nonce=9f7c55ca98&action=bwg_UploadHandler&dir=/
    Request Method: POST
    Status Code: 500 Internal Server Error
    Remote Address: <<ip address>>:443
    Referrer Policy: strict-origin-when-cross-origin

    I’m not sure how to interpret it.

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Probably, you have a backslash in alt/description of the images. Could you please check and remove the backslashes?

    Thank you!

    Have a nice day!

    There are no backslashes in any of the uploaded photo’s alt/titles nor in the photo being uploaded.

    This is happening on all my client sites that use this plugin.
    The server is running CentOS 7.6
    cPanel 78.0.20

    It seems to have started after upgrading the OS and cPanel. Could there be a missing extension?

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Please note that probably, wp-admin/admin-ajax.php is restricted.

    Thank you!

    Have a nice day!

    No, admin-ajax works fine for uploading images to Media Library. It only fails when uploading using Photo Gallery. I’m fairly certain the problem is a missing PHP extension.

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Could you please also provide the error log?

    Thank you!

    Have a nice day!

    There were no errors in the error_log or in the apache error_log. What I ended up doing was installing the All PHP Options + OpCache profile in Easyapache4, and that fixed the problem. As I suspected, it must be a missing PHP or Apache extension. I couldn’t isolate which one, and I simply don’t have the time to debug which extension it was. The new profile seems to be working well, if not a little overkill since it is loading all PHP options.

    I’m having the same issue, we really need to have this isolated. It is not realistic to load ALL PHP options and bog down our servers.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Upload stopped working’ is closed to new replies.