• Resolved JungleWP

    (@junglewp)


    Hello guys,

    It seems that the newest version you released introduces some PHP errors with on PHP 7.0 / 7.1 / 7.2.

    On row 222 in REDACTED/plugins/advanced-access-manager/Application/Core/ConfigPress/Evaluator.php, in function processOperation($operation, $operandA, $operandB) one of the arguments is empty.

    On row 237

    case '/';
    $operandA /= $operandB;
    break;
    returns 0

    I am working on a few sites who reported the following issues with AAM.

    1- Maximum execution time of 30 seconds exceeded in REDACTED/plugins/advanced-access-manager/Application/Core/ConfigPress/Evaluator.php on line 196

    2- REDACTED/plugins/advanced-access-manager/Application/Core/ConfigPress/Evaluator.php on line 196

    3- [17-Sep-2018 06:27:50 UTC] PHP Warning: A non-numeric value encountered in
    REDACTED/plugins/advanced-access-manager/Application/Core/ConfigPress/Evaluator.php on line 237

    4- PHP Warning: Division by zero in REDACTED/plugins/advanced-access-manager/Application/Core/ConfigPress/Evaluator.php on line 237

    Kind regards,
    Franck Adil. K

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AAM Plugin

    (@vasyltech)

    Hi @junglewp,

    Please let me know what config did you enter on the ConfigPress tab?

    Regards,
    Vasyl

    Thread Starter JungleWP

    (@junglewp)

    Thanks for the fast reply, I can’t tell what config was used, but I found this in a configpress table in wp-options on one of the affected sites:

    [aam]
    [css] 
    
    [/css]
    [/aam]

    I’ve been told by a user that apparently a wrong css code triggered the issue.

    It seems that deleting this setting from the database fixed the error message for now.

    But I have no clue on the impact of deleting this setting. I am waiting for the site owner to share with me the code they’ve used. I’ll keep this post updated so maybe this can save other users from useless sleepless nights.

    Kind regards,
    Franck Adil. K

    Plugin Author AAM Plugin

    (@vasyltech)

    @junglewp,

    Well Franck. That is not correct INI format. Please read this article https://aamplugin.com/help/aam-configurations

    This is solve your problems.

    Regards,
    Vasyl

    Thread Starter JungleWP

    (@junglewp)

    @vasyltech

    Thank you so much Vasyl for the excellent support and quick replies!

    I tried with and without the data in the wp_options table and this is what caused the PHP errors. I’ll share the link you gave me as a reference.

    Here is an additional link that I’ve found: https://vasyltech.com/config-press

    A little question, is it possible to prevent users from having PHP errors due to bad shortcodes format / content, or is it alrady included but our users did something not expected ?

    Sincerly yours,
    Franck Adil. K

    • This reply was modified 6 years, 6 months ago by JungleWP.
    • This reply was modified 6 years, 6 months ago by JungleWP.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.