Disable Google fonts in wordpress - wordpress

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

Related

Elementor Sever error 500 and server error 503 leads to published content being invinsible

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

How to fix chmod errors when updating wordpress theme?

I recently upgraded from php 5 to 7.2 and my wp site didnt work, service temporarily unavailable error. So I logged into the backend and WP 5.4 was telling me I needed to check security issues of which I resolved 2 of 3 automatically but 1 could not which is "restrict access to files and folders". So I tried to update the 2017 theme and when I do so I get a bunch of these(although its the same error):
Selected items were updated with errors:
- Unable to update theme 'twentyseventeen_1.7_1_', details: PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168...
and near the end it reads:
Warning: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. "front-page.php, rtl.css, 404.php...
Then in the end it doesnt update of course. A suggestion by the Wordpress Toolkit on plesk is:
Im using filezilla and changing the permissions to those files but I get "operation not permitted".
[SOLVED] (at least for me)
Me too on Cloudways and Digital Ocean.
Just restart the server and error is gone.

Wordpress Error after updating wordpress and plugins

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.

Fatal error when copying wordpress site from server to localhost

I've been trying to create a local copy of this wordpress site - click4taps.co.uk. But even though everything seems to run pretty much fine on the server, on localhost I am getting these code errors, I would have maybe expected a database error if I had forgot something in the setup. I'm not super good at php but I can't see anything that out of place in the code the error specifies.
Here is the error message I receive when trying to launch the site in localhost:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_layered_nav_init' not found or invalid function name in C:\Program Files (x86)\Ampps\www\click4taps\wp-includes\plugin.php on line 406
Fatal error: Call to undefined function is_product() in C:\Program Files (x86)\Ampps\www\click4taps\wp-content\themes\bazar\theme\plugins\woocommerce-ajax-layered-nav\init.php on line 59
Any feedback on this would be very helpful thanks
Activate your woocommerce plugin

Error when trying to login to site

I am having an issue I moved my site to online today. At localhost Login page was working perfectly but when I moved the site to online server login page returns a blank page after authentication instead of redirecting me to the user profile, here is the link if you want to test the login page.
My console output is below
[13:47:12.109] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. # http://www.gms-giki.com/wp-login.php
[13:47:12.236] Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead. # resource://gre/modules/XPIProvider.jsm -> jar:file:///C:/Users/Anfal/AppData/Roaming/Mozilla/Firefox/Profiles/g6wqsxw1.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///C:/Users/Anfal/AppData/Roaming/Mozilla/Firefox/Profiles/g6wqsxw1.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/requestNotifier.js:64
and here is the result of debugging.
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /home/gmsgiki/public_html/wp-includes/functions.php on line 3012
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/gmsgiki/public_html/wp-includes/functions.php on line 3012
Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/gmsgiki/public_html/wp-includes/functions.php on line 3012
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/gmsgiki/public_html/wp-includes/functions.php on line 3012
Notice: is_site_admin is deprecated since version 1.5! Use is_super_admin() instead. in /home/gmsgiki/public_html/wp-includes/functions.php on line 2871
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-includes/pluggable.php on line 875
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-content/plugins/quick-chat/quick-chat.php on line 262
Notice: Undefined index: byrole in /home/gmsgiki/public_html/wp-content/plugins/menu-by-user-role/includes/class.plugin_mur.php on line 162
Notice: Undefined index: byrole in /home/gmsgiki/public_html/wp-content/plugins/menu-by-user-role/includes/class.plugin_mur.php on line 162
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-login.php on line 384
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-login.php on line 396
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-includes/pluggable.php on line 678
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-includes/pluggable.php on line 679
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-includes/pluggable.php on line 680
Warning: Cannot modify header information - headers already sent by (output started at /home/gmsgiki/public_html/wp-includes/functions.php:3012) in /home/gmsgiki/public_html/wp-includes/pluggable.php on line 875
Try naming your plugins folder to plugins_old ...this will deactivate them all. Try logging in again after that.

Resources