• Resolved beriber

    (@beriber)


    I got

    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

    when entering setting pages
    wp-admin/options-general.php?page=webp_express_settings_page
    what happen, how can debug this ?
    i’m using WebP Express 0.17.2
    wordpress 3.7.1
    thankyou

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey beriber,

    I had a similar issue a few days ago using the plugin version 0.17.2 and received an email including the error details, did you get an email?

    If not I was able to debug and confirm this by logging php errors. I did this by placing the following code into wp-config.php

    // log php errors
    @ini_set(‘log_errors’,’On’); // enable or disable php error logging (use ‘On’ or ‘Off’)
    @ini_set(‘display_errors’,’Off’); // enable or disable public display of errors (use ‘On’ or ‘Off’)
    @ini_set(‘error_log’,’/path/to/logs/php-errors.log’); // path to server-writable log file

    ^ The only thing you need to change in the above is the final line pointing to where the path will be for your php-errors.log file, this needs to be a server writable directroy.

    This should give you a log of any php errors you experience on your site. Go to this log file and look for a line similar to the below:

    PHP Fatal error: Access level to WebPConvert\Convert\Converters\BaseTraits\WarningLoggerTrait::logLn() must be public (as in class WebPConvert\Convert\Converters\BaseTraits\OptionsTrait) in /…/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php on line 17

    If you have this exact message (where “WarningLoggerTrait::logLn() must be public” in “AbstractConverter.php on line 17”) then you are likely experiencing the same problem.

    If it’s different then you’ll need to do more research into how to fix it but I fixed my issue by changing “protected” to “public” in the following files on the following lines:

    /wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/WarningLoggerTrait.php on line 17
    /wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/LoggerTrait.php on line 39
    /wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/LoggerTrait.php on line 65

    I changed three lines across two files because I kept getting more errors in the log file until it eventually started working again.

    HOWEVER I don’t know enough to say whether this is the right way to fix this problem or whether this creates a security hole so if anyone with more knowledge can confirm that would be great.

    Hopefully this will fix your problem (or at least point you in the right direction).

    Don’t forget to remove the code from wp-config.php once you are done testing to stop logging php errors.

    CG

    (@nordmathis)

    @nintendude89, I had the same issue and fixed it by making the opposit of your approach: Since the implementing methods have “more secure” access modifiers I changed the access modifier of the abstract methods so that they methods match the signatures of the implementing methods. It works as well.

    • This reply was modified 4 years, 9 months ago by CG.
    CG

    (@nordmathis)

    @beriber Maybe you could think about a WordPress update. 3.7.1 is quite old.

    Plugin Author rosell.dk

    (@roselldk)

    Hi @nintendude89.

    It seems that you are experiencing the problem that is solved in this PR:
    https://github.com/rosell-dk/webp-convert/pull/244

    I shall publish a new version with a fix soon (ETA: a couple of days)

    The problem btw occurs on PHP 7.4.

    Plugin Author rosell.dk

    (@roselldk)

    Thanks for your fix, @nintendude89. I have released 0.17.3 with your fix

    Hi @roselldk

    Thank you very much for fixing this! I love this plugin so it’s great that I can still use it going forward. I’ll awaiting your update.

    Plugin Author rosell.dk

    (@roselldk)

    Ok, it then seems that it takes a little time for the release to be available everywhere. But it must be there by now

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The site is experiencing technical difficulties. Please check your site admin em’ is closed to new replies.