Sudden blank page on WordPress Admin Dashboard - php
My WordPress Admin Dashboard is experiencing an issue which I have never encountered before. I have not made any updates/changes on WordPress and any plugins. Yet, suddenly my WordPress Admin Dashboard has become like the attached image below.
What I have tried so far to fix this issue:
(1) Increased the WP_MEMORY_LIMIT but it did not worked out
(2) Tried to change wp-admin\includes\screen.php on line 706:
from <?php echo self::$this->_help_sidebar; ?>
to <?php echo $this->_help_sidebar; ?>
But my screen.php file has less than 300 lines of code and does not contain <?php echo self::$this->_help_sidebar; ?> in it. So I cannot change it.
(3) Disabled all plugins(10) by renaming the "plugins" folder and it did solved the blank page issue.
(4) I have set WP_DEBUG to TRUE and got the following messages:
Undefined property: wpdb::$connect_errno in /local/www/html/xxxxx/wp-includes/wp-db.php on line 684 Notice: Undefined property: wpdb::$connect_errno in /local/www/html/xxxxx/wp-includes/wp-db.php on line 684 Notice: The called constructor method for WP_Widget in WPAC_Nav_Menu_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /local/www/html/xxxxx/wp-includes/functions.php on line 3764 Notice: The called constructor method for WP_Widget in Genesis_Featured_Post_with_title is deprecated since version 4.3.0! Use
__construct()
instead. in /local/www/html/xxxxx/wp-includes/functions.php on line 3764 Notice: Constant FORCE_SSL_ADMIN already defined in /local/www/html/xxxxx/wp-config.php
(5) Disabled the plugins(10) one by one to find out which plugin was the culprit. Interesting enough is that whichever plugin I disabled the blank page issues was still solved . This made it difficult for me to isolate which plugin was the culprit. I might be totally wrong thinking that the plugins may be causing this blank page issues. Currently, I have no idea how to solve/approach this issue and why this is happening.
Any help would be appreciated very much!
Related
Elementor Function is not working properly in Document.php
I am working on a site that suddenly has these error messages: [25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined variable: post in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 [25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined property: Elementor\Core\Kits\Documents\Kit::$ in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 [25-Aug-2022 16:23:38 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 [25-Aug-2022 16:23:50 UTC] PHP Notice: Trying to get property 'ID' of non-object in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 The errors showed up whenever a customer tried to put a variable product into the shopping cart. On the front end it says: This doesn't happen if the customer adds a non-variable product to the cart, so I am not sure what is happening or how to repair this. I have reached out to elementor with no response at this point after 24 hours. The code referenced in the error log is: public function get_main_id() { if ( ! $this->main_id ) { $post_id = $this->post->ID; $parent_post_id = wp_is_post_revision( $post_id ); if ( $parent_post_id ) { $post_id = $parent_post_id; } $this->main_id = $post_id; } return $this->main_id; } This occurred after the site was moved to a new hosting company, however, the site was working fine for the past three weeks, and the issue wasn't present.
I was able to figure out (With the help of Elementor Tier 2 support) that the hosting provider (Site Grounds) installs a plugin called "SiteGround Optimizer" that was causing this issue. There is a conflict between this plugin and Elementor in case anyone is having this issue. EDITED: SiteGround was able to turn off the "Defer Render-blocking JavaScript" feature and the plugin worked with the rest of the site. If you are having a strange issue and you are on SiteGround, I highly recommend you turn this feature off to troubleshoot the issue better.
This is occurring on Kinsta too - so it's not just the SG plugin. It could still be optimization related - but I can't seem to find a resolution yet (even rolling back versions isn't helping me).
that issue comes in new version of elementor, just rollback it previous version following this video https://youtu.be/3uwCRcQvIFw
Joomla : how to fix "Undefined property: AriDocsViewerContentPlugin::$stripUSC"?
I try to install the ARI Docs Viewer plugin of Joomla in localhost and I always have the following error: " Undefined property: AriDocsViewerContentPlugin::$stripUSC " However, all the files to be displayed are all present in the local server. When I disable the plugin, there is no error on the site and the document does not display. I’ve already commented the next code tip and the error goes away but the document still does not appear. if ($this->stripUSC) { // Alternatively: preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xE2\xAF\x91", $source) but it'd be slower. $source = $this->stripUSC($source); } Does someone here already had this error ? Thanks a lot!!!
Wordpress Customize not working - load-scripts.php errors
When I try to customize my Wordpress theme, I get a blank screen. I disabled plugins and the error was still there - it's the theme, I tried a different theme and the issue was gone. I ran the JS console and got these errors, but I don't know what they mean: load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:58 Uncaught TypeError: Cannot read property 'replace' of undefined at Function.m.template (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:58) at n.template (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:61) at n.render (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:722) at n.initialize (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:718) at n.e.View (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:84) at n.constructor (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:86) at new n (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:84) at f.ready (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:31) at Object.<anonymous> (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:31) at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:2)
It seems like you are not the first one to have this problem. I cannot debug your problem for you (as load-scripts.php is a core file which is obvioiusly loading a lot) but MAYBE your problem is the same as described here: https://iansvoboda.com/code/dealing-load-scripts-php-console-errors-wordpress/ Ultimately the issue came down to extra white-space in the top of a functions.php include. If your WordPress theme’s functions.php file (or any files included/required inside of it) has extra white-space before the first opening PHP tag, WordPress may not function correctly. The exact issue(s) caused by the white-space vary depending on your setup and in this case they took the form of a console error. Therefore: Go ahead - check your theme files.
blank page in wp-admin
I am getting the following error when I want to access the wp-admin sites of my wordpress installation: Fatal error: Cannot redeclare send_confirmation_on_profile_email() (previously declared in /wp-includes/user.php:2624) in /wp-admin/includes/ms.php on line 423 I looked around but couldn't find any help yet. Maybe someone of you knows how to fix this error. Thanks.
It seems send_confirmation_on_profile_email() function is used more than once. So what you need, is to find that function and rename it to its relevant name but make sure it does not match with the send_confirmation_on_profile_email
WordPress theme error: Call-time pass-by-reference has been removed in theme file
I've just been racking my brain over this one so I hope someone would kindly help me out if possible. My site is broken right now - it's only showing this error "Fatal error: Call-time pass-by-reference has been removed in home/***/public_html/wp-content/themes/agency/library/init.php on line 31." I am not able to get to the WordPress admin login or anything. This occurred when I attempted to update the a WordPress theme. While trying to research an answer, I came across tons of people having this similar error. Most people were able to fix it by removing & out of said line of code in said php file of the error (in my case it would be line 31 of init.php). This unfortunately did not work for me. I also tried renaming the Agency theme folder to see if WordPress would load up a different default theme. It did not. I got the same error. I also tried deleting the theme folder via FTP. Even though it was deleted, I still got the same error. I also tried disabling plugins by renaming the plugin folder. No luck there either. What could it be that I am missing here? Do I need to delete the theme folder from cPanel perhaps? I am incredibly boggled by how I seem to get the same error from a theme folder that doesn't exist (after I deleted the folder). I would greatly appreciate any assistance with this error. Here is the code the error is referencing - I put the &s back in since it did not seem to matter whether they were there or not. 28 function agency_nav_menu_objects($items) { 29 30 foreach ($items as &$item) { 31 if ( agency_get_menu_object_items($item->ID, &$items) ) { 32 $item->classes[] = 'sub'; 33 break; 34 } 35 } 36 return $items; 37 }
Did you changed all &$items to $items in init.php?