wordpress site showing warrning in some section - wordpress

my wordpress site is running ok but in some section this warning is shown
Warning: Parameter 2 to gdlr_core_page_builder::search_page_builder() expected to be a reference, value given in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 287
wordpress ver:5.4.1
i deactive all plugin and active one by one and found when i deactive one of the plugin (Goodlayers Core
) not showning error anymore but all element of site is disappear because it's core of theme it seems.

The error describe itself.
From somewhere the 2nd parameter of the function gdlr_core_page_builder::search_page_builder() is passed as value which should be a reference.
The error showing in file class-wp-hook.php on line 287 because of there is some hook is added into the above function.
You can contact that plugin author who will fix this issue if it is exist and release that plugin update.

This is a plugin issue. However, you can simply disable the displayed warning by adding the below lines of code in wp-config.php file.
Locate your file under cPanel FileManager:
/home1/yoursitename/public_html/wp-config.php
Add the below lines of code to hide the displayed warning:
ini_set('display_errors', 'Off');
ini_set('error_reporting',E_ALL);
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );

Had the same issue, fixed by removing vars passed by reference (&$) on the file /wp-content/plugins/goodlayers-core/framework/function/page-builder.php:
open the file
search for &$, replace by $
save, refresh website (clear cache if needed), error is gone

Related

How to fix a WordPress edit beta white blank page?

I created a site using local wp and created a new theme using VSCode. When I tried to open the edit beta page to edit my site I got a white blank page and I got no errors.
When I use the devtools to inspect, I find all the HTML elements and no network errors. I tried every solution I could find on internet but I couldn't resolve it.
Here is the editor page I got :
Can you please give me a solution?
You'll want to navigate to the root of your project and open the wp-config.php file. There you'll find the following:
define( 'WP_DEBUG', false );
If it is set to "false" you'll want to change it to "true" to allow WordPress to show error output on the page you are getting the white screen.
If you did not find the above script in the wp-config.php file you'll want to add the following.
define( 'WP_DEBUG', true );
When you do you'll likely see a "Fatal" error that is causing the site to crash and information on the file and line in the code where you can find the offending script.

Menu page not showing in WP Admin section

I have a WordPress eCommerce website in this website all working but admin menu page not working and the page showing blank, and I was trying to add a new image that image does not upload and not showing the old image in media library only loading process see attachment
In order to solve this issue, you need to see what error is causing this blank page. By default, PHP suppresses errors display for security reasons, but Wordpress has a setting to show the errors.
In order to turn on error display, open your wp-config.php in the root folder
And add these two lines:
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG', true );
NOTE: You must insert this BEFORE /* That's all, stop editing! Happy blogging. */ in the wp-config.php file.
You can read more here: https://wordpress.org/support/article/debugging-in-wordpress/
Only after you do that you will be able to see the error instead of a blank page, and then share it here to help us solve it or google for solution yourself.

RSS feed does not validate on wordpress

I have an error message when I click on my site's rss feed url (both from feedburner and the original atom feed):
"This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error."
I Have check with The rss feed validator and this is what I got:
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FNoCamels
I tried everything they suggested (also restarted the plugins) - but nothing worked.
PLEASE, I need your help!
Yuval
You simply have a blank line outside php tags in your wordpress files.
You should check and remove blank lines in :
wp-config.php
functions.php of your theme
*.php in your plugins
...etc
Take a look here :
http://www.quickonlinetips.com/archives/2009/05/wordpress-feed-xml-parsing-errors/
I had the same problem. The culprit was the wp-trackback.php. Blank space at the bottom. I cleared the blank space and voila. RSS is working now.
I have also this question. I solved from error on line 2 at column 6
You simply have a blank line outside php tags in your WordPress files.
You should check and remove blank lines in :
wp-config.php
functions.php of your theme
*.php in your plugins
...etc
Take a look here

Wordpress goes blank after publishing new content?

So out of no where after clicking the publish button the page just goes blank...
The url at the top is:
http://www.brightboxstudios.com/sociabulls/wp-admin/post.php
What's good news is it still posts the content :)
Not great at coding so details rock :)
I was getting same error, when I update the site content and press update it goes to /wp-admin/post.php and this appears as blank page.
It is solved by:
I removed all the spaces at the end of functions.php file, I had included a widget and there were some spaces in between older content and new widget function, when I removed the spaces everything is working fine.
if that don't work then
- go into wp-config.php and find this "define('WP_DEBUG', false);"
change its value, if it is flase, make it true or if it is true change it to false.
And everything must work Good.
Thanks
A blank page usually means Apache failed. Check your error logs. You'll probably find a line that starts with:
PHP Fatal error:
You can also display your errors on the screen instead of looking at the log.
There will be many reasons for blank page, you have not mention version for wp, php etc.
To solve wordpress blank page issue follow the steps
disable all plugin and try (if there is an error in plugins then enable 1 by 1)
switch to default theme and try (if there is an error in theme)
rename .htaccess and param-link to default (page/post id)

how to activate wordpress plugins internally?

I am creating a small utility which will help to rebuild install.php of WordPress.
What I want to achieve is, when user will install WordPress with this customized install.php, he'll get some plugins already activated.
I tried to put these lines at the end of install.php file
require_once('path...\wordpress\wp-includes\plugin.php');
activate_plugin('hello.php');
that activates Hello Dolly plugin but shows error 'invalid datatype for second argument on line 310' for plugin.php
Also, if I try plugins which are inside a folder, for example
require_once('path...\wordpress\wp-includes\plugin.php');
activate_plugin('plugin-folder\file.php');
its not getting activated.
[i've tried different combinations for sending arguments, echoing arguments in plugin.php etc. but activate_plugin() does receive correct argument. ]
Consider that plugins are already copied in wp-content/plugins directory.
Whats wrong? Is there any different way to achieve this?
Thanks
Instead of including plugin.php file, include the wp-load.php file
require_once('path...\wordpress\wpload.php');
wpload.php will automatically include all the file in the correct order, which should solve your issue.
Atlast I came up with a new activate_plugin function that I added to that file. Problem in old function is the check for active plugins. At first since there is no active plugin, it was returning null value, showing the error. I removed that for my use.
why we dont see errors when using from wordpress dashboard ? wordpress hides them.
Thanks anyway..

Resources