Tagged: PHP upgrade
-
AuthorPosts
-
July 26, 2023 at 11:02 am #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.
MSJuly 26, 2023 at 8:14 pm #1414562Hey 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,
RikardJuly 27, 2023 at 11:53 am #1414654Hi,
debug is off, i see: define(‘WP_DEBUG’, false);How can i fix it?
Looking forward hearing from you.
Best regardsJuly 27, 2023 at 6:20 pm #1414705Hi,
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,
RikardJuly 28, 2023 at 5:50 pm #1414764Done!
thank you!July 28, 2023 at 7:08 pm #1414776August 30, 2023 at 11:54 am #1417541This reply has been marked as private.August 30, 2023 at 4:26 pm #1417588Hi,
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,
RikardAugust 31, 2023 at 4:55 pm #1417706Oh sorry.
Here you are ( in private content).
Best regards.
MSSeptember 1, 2023 at 11:58 am #1417793Hi,
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,
IsmaelSeptember 1, 2023 at 2:49 pm #1417831Ok, but what should I do on the function.php file?
Looking forward hearing from you
Best regardsSeptember 2, 2023 at 9:22 am #1417858Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.