Background of the issue:
I am trying to debug an issue with the Cookiepro plugin on my WordPress site. Here is the debugging log:
[12-Jul-2024 03:41:26 UTC] PHP Deprecated: Creation of dynamic property Cookiepro::$plugin is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-content/plugins/cookiepro/class-cookiepro.php on line 43
[12-Jul-2024 03:41:29 UTC] PHP Deprecated: Creation of dynamic property Cookiepro::$plugin is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-content/plugins/cookiepro/class-cookiepro.php on line 43
[12-Jul-2024 03:41:35 UTC] PHP Deprecated: Creation of dynamic property Cookiepro::$plugin is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-content/plugins/cookiepro/class-cookiepro.php on line 43
[12-Jul-2024 03:41:38 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/vhosts/franklincovey_uk-wp/wp-includes/ms-settings.php on line 57
[12-Jul-2024 03:41:38 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-includes/ms-settings.php on line 57
[12-Jul-2024 03:41:38 UTC] PHP Deprecated: Creation of dynamic property Cookiepro::$plugin is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-content/plugins/cookiepro/class-cookiepro.php on line 43
[12-Jul-2024 03:41:39 UTC] PHP Warning: Undefined array key "host" in /var/www/vhosts/franklincovey_uk-wp/wp-includes/canonical.php on line 716
[12-Jul-2024 03:41:39 UTC] PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/franklincovey_uk-wp/wp-includes/canonical.php on line 716
[12-Jul-2024 03:41:39 UTC] PHP Warning: Undefined array key "host" in /var/www/vhosts/franklincovey_uk-wp/wp-includes/canonical.php on line 727
[12-Jul-2024 03:41:39 UTC] PHP Warning: Undefined array key "host" in /var/www/vhosts/franklincovey_uk-wp/wp-includes/canonical.php on line 730
[12-Jul-2024 03:41:39 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/franklincovey_uk-wp/wp-includes/ms-settings.php:57) in /var/www/vhosts/franklincovey_uk-wp/wp-includes/pluggable.php on line 1435
[12-Jul-2024 03:41:39 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/franklincovey_uk-wp/wp-includes/ms-settings.php:57) in /var/www/vhosts/franklincovey_uk-wp/wp-includes/pluggable.php on line 1438
Link to a page where the issue can be seen: hidden link
Symptoms:
I expected to see the bug fixed, but instead, I got multiple PHP Deprecated and PHP Warning messages related to the Cookiepro plugin and WordPress core files.
Questions:
How can I fix the deprecated property creation issue in the Cookiepro plugin?
What should I do about the undefined array key warnings in the WordPress core files?
How can I resolve the 'Cannot modify header information' warning?
This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help. If you do, please reply to this ticket, and one of our supporters will continue helping you.
Please try my suggestion to update WPML, Strings Translation, and any of our plugins that need an update. If you don't see an update to our plugins, please check this link.
The topic ‘[Closed] Bug with the code plugin’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.