Wordpress Error after updating wordpress and plugins - wordpress

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.

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

Can't perform require once in WordPress without displaying the path on the page

Followng accepted answers given here I used the following to call some PHP code on my home page:
require_once (bloginfo('template_directory') . '/home_bloc_horaires.php');
It works, but it also actually displays the path of my template directory on my page! Any way to avoid this?
EDIT:
Tried require_once(get_template_directory().'/home_bloc_horaires.php'); : it doesn't work and I get the following error messages:
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
Warning: include(http://127.0.0.1/wordpress/mirail/wp-content/themes/mmt-2014/home_bloc_horaires.php): failed to open stream: no suitable wrapper could be found in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
Warning: include(): Failed opening 'http://127.0.0.1/wordpress/mirail/wp-content/themes/mmt-2014/home_bloc_horaires.php' for inclusion (include_path='.;C:\php\pear') in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
bloginfo() outputs the result, which is why you can see it. Use this instead:
require_once(get_template_directory().'/home_bloc_horaires.php');
You can find more info on loading files in WordPress here.

Disable Google fonts in 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

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.

Error after MAMP to Live WP

hi i get these errors after getting live with my wordpress site from local to server.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'bones_register_sidebars' not found or invalid function name in /is/htdocs/wp1108989_5IDG6XP7VR/www/cgi-bin/website/wp-includes/plugin.php on line 403
Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp1108989_5IDG6XP7VR/www/cgi-bin/website/wp-includes/plugin.php:403) in /is/htdocs/wp1108989_5IDG6XP7VR/www/cgi-bin/website/wp-includes/pluggable.php on line 881
hoster is hosteurope.
any one any ideas how to fix it?
Not really sure what those errors are, but if everything works as expected then add a php value to your .htaccess file
php_value error_reporting 0

Resources