I uploaded a plugin to customize my WooCommerce email headers but it caused a depreciation error in the email that have been sent. How can I fix these errors?
Notice: WC_Order::email_order_items_table is deprecated since version 3.0! Use wc_get_email_order_items instead. in /var/www/html/wp-includes/functions.php on line 3853
Notice: WC_Order_Item_Meta::__construct is deprecated since version 3.1! Use WC_Order_Item_Product instead. in /var/www/html/wp-includes/functions.php on line 3853
Related
Website got hit by Japanese spam hack thus did many changes to .htaccess, index.php such as changing file permissions etc prior to this elementor was working all good. Running on php 7.4 on direct admin wordpress based.
To get rid of the hack used several new plugins and cleaning up of code.
Currently the error comes when try to update content it says Server 500 error and sometimes Server 503 error. In the event content goes through with update then the page when viewed only loads the header and footer and no body/content that elementor should have generated.
Things that was tried to fix;
Tried increase php mem limit, tried make new page add content and publish, tried deactivate some plugins and see if solves, tried upgrading plugin to newer versions, tried elementor different editor loader enable, tried elementor regenerate under tools and sync library also, tried elementor safe mode, tried change php version to all possible combinations.
Here is debug info displayed on page that gets updated but content empty.
Any ideas how to solve?
Here is further log of code;
2022-11-19 22:18:56.193669 [NOTICE] [1540710] [T0] [2402:4000:2081:28a9:d53c:d245:3ca9:96a3:61778-H3:93B0CE471FDC440A-4#APVH_www.domain.com:443] [STDERR] PHP Notice: Trying to access array offset on value of type null in /home/dom/domains/domain.com/public_html/wp-content/plugins/elementor/includes/embed.php on line 156
2022-11-19 22:18:56.193720 [NOTICE] [1540710] [T0] [2402:4000:2081:28a9:d53c:d245:3ca9:96a3:61778-H3:93B0CE471FDC440A-4#APVH_www.domain.com:443] [STDERR] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/ dom/domains/domain.com/public_html/wp-includes/formatting.php on line 3366
2022-11-19 22:18:56.193733 [NOTICE] [1540710] [T0] [2402:4000:2081:28a9:d53c:d245:3ca9:96a3:61778-H3:93B0CE471FDC440A-4#APVH_www.domain.com:443] [STDERR] PHP Notice: Trying to access array offset on value of type bool in /home/ dom/domains/domain.com/public_html/wp-includes/formatting.php on line 3373
I started having errors after updating wordpress and my website plugins
Notice: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /home4/magist31/public_html/magistraldoces.com/wp-content/themes/sinrato/functions.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /home4/magist31/public_html/magistraldoces.com/wp-content/themes/sinrato/functions.php:74) in /home4/magist31/public_html/magistraldoces.com/wp-includes/pluggable.php on line 1265
Warning: Cannot modify header information - headers already sent by (output started at /home4/magist31/public_html/magistraldoces.com/wp-content/themes/sinrato/functions.php:74) in /home4/magist31/public_html/magistraldoces.com/wp-includes/pluggable.php on line 1268
http://magistraldoces.com/
Only one Notice error is there.
Can you please try to look into /home4/magist31/public_html/magistraldoces.com/wp-content/themes/sinrato/functions.php on line 74.
What related code is there, Any error is there or what exactly.
Parse error: syntax error, unexpected '[' in D:\Hosting\2772443\html\wp-content\plugins\embedly\embedly.php on line 535
Can not activate Fatal Error. Is Embedly aware?
Yes, this is a version issue with PHP. A new version of the Embedly plugin will be available later today.
i just installed "Disable Google Fonts" plugin to inactive em , when i actived it i got those errors
BTW i'm using wordpress 4
when i tried to active it i got these errors:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'remove_inline_style' not found or invalid function name in /home/ghadaal/public_html/blog/wp-includes/plugin.php on line 505
Warning: Cannot modify header information - headers already sent by (output started at /home/ghadaal/public_html/blog/wp-includes/plugin.php:505) in /home/ghadaal/public_html/blog/wp-includes/pluggable.php on line 1173
Warning: Cannot modify header information - headers already sent by (output started at /home/ghadaal/public_html/blog/wp-includes/plugin.php:505) in /home/ghadaal/public_html/blog/wp-includes/pluggable.php on line 1173
and when i tried to remove the plugin
i got that error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'remove_inline_style' not found or invalid function name in /home/ghadaal/public_html/blog/wp-includes/plugin.php on line 505
PS here's the plugin link
While you are installing a plugin, you need to be careful about plugin test level. That plugin has been tested up to 3.8.3 as below;
It is not compatible with wp 4.x. In order to delete plugin, go to /pathto_website/wp-content/plugins/ directory and delete disable-google-fonts folder manually. And you can use support section of plugin page to warn author of that plugin in order to make necessary upgrade for that plugin
I've just noticed that all of my checkboxes and radio buttons are missing labels on my drupal site admin menus. Not sure when this started (I've checked several backups, and it is present in all of them), but I'd like to find a solution.
I have tried disabling modules, but to no effect at the moment.
I've attached a screenshot
I have noticed a couple of PHP warnings pop up on a couple of pages - these are:
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /persistent/html/includes/bootstrap.inc on line 1606
and
Warning: in drupal_clean_css_id![enter image description here][1]entifier() (line 3731 of /persistent/html/includes/common.inc).
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /persistent/html/includes/bootstrap.inc on line 1606
was the clue apparently.
PHP had recently been upgraded from 5.3.13 to 5.3.14, and this seemed to change the way in which preg_match is handled. Upgraded again to 5.3.15 and the problem was still there - so I downgraded to 5.3.13 and the problem was solved.
Found other instances of people getting a similar preg_match error on Wordpress which subversion php upgrades!