Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1414512

    Hi,
    after the PHP upgrade from 7.4 to 8.0, I see these errors:
    1) Warning: Constant WP_MAX_MEMORY_LIMIT already defined in /home/customer/www/gdpr-privacy.net/public_html/wp-config.php on line 92;
    2) Warning: session_start(): Session cannot be started after headers have already been sent in /home/customer/www/gdpr-privacy.net/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 112.

    Can you help me please?
    Looking forward hearing from you.
    Best regards.
    MS

    #1414562

    Hey maryenvato,

    The first warning is coming from wp-config.php, which is a general WordPress file. Please try fixing that first of all, to see if that helps. You could check if debugging is active in the same file: https://wordpress.org/documentation/article/debugging-in-wordpress/. If it is, then please try turning it off.

    Note that these are warnings, and should not affect any functionality on your site.

    Best regards,
    Rikard

    #1414654

    Hi,
    debug is off, i see: define(‘WP_DEBUG’, false);

    How can i fix it?
    Looking forward hearing from you.
    Best regards

    #1414705

    Hi,

    Try to check if WP_MAX_MEMORY_LIMIT is added twice in wp-config.php, then remove the instance which is not needed.

    Best regards,
    Rikard

    #1414764

    Done!
    thank you!

    #1414776

    Hi,

    Thanks for the update. Are the warnings gone now then?

    Best regards,
    Rikard

    #1417541
    This reply has been marked as private.
    #1417588

    Hi,

    We can’t help you out unless you provide the exact message you are seeing. I’m not seeing anything on the page you linked to in private.

    Best regards,
    Rikard

    #1417706

    Oh sorry.
    Here you are ( in private content).
    Best regards.
    MS

    #1417793

    Hi,

    Have you tried checking the functions.php file for the WP_MAX_MEMORY_LIMIT? Please double-check the wp-config.php file as well.

    Best regards,
    Ismael

    #1417831

    Ok, but what should I do on the function.php file?
    Looking forward hearing from you
    Best regards

    #1417858

    Hi,

    The warning is saying that the WP_MAX_MEMORY_LIMIT constant is defined more than once, did you check the wp-config.php file for example? If it’s not defined more than once in there, then it must be added somewhere else. You could try downloading your installation and search for it locally for example.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.