Error on Error Page

When a user enters the wrong url http://chucksas.com/facility-toor/ vs http://chucksas.com/facility-tour/ they are redirected to an Oops page that states: “The page you are looking for is no longer here, or never existed in the first place (bummer). You can try searching for what you are looking for using the form below. If that still doesn’t provide the results you are looking for, you can always start over from the home page.”

The problem is I am getting a helper.php error:
Warning: First parameter must either be an object or the name of an existing class in /homepages/19/d625887598/htdocs/chucksas/wp-content/themes/x/framework/functions/global/helpers.php on line 137

I have not done anything custom to any theme files. Any help would be appreciated.

Hey,

Please, ensure you`re using the latest version of our theme and plugin and disable all of the plugins to check if there is any conflict. If the issue persists, provide to us your WP credentials in a secure note.

I am getting this now as well.

The original code at Line 137 is:
} elseif ( property_exists( $post, ‘ID’ ) ) {

I had to change that to:
} else {

For some reason that line is messing it up.
It is a dirty way of doing it temporarily but, what would be a better solution?

The plugin that is causing the error is slider revolution. And that should be compatible. Suggestions?

I have the same issue. Please advise.

I am also now getting this error.

Hello There,

Thanks for updating in! What you are seeing is a PHP Warning. This usually appears when a particulate variable is unset or returns a null value. To get rid of this Warning message, simply disable the debug mode. You can do this by opening wp-config.php and adding define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing this PHP Warning.

Hope this helps. Please let us know how it goes.

This had no effect.

I too am getting this error except when a user does a search that contains no results. Pretty sure X Theme needs an update for this one :slight_smile:
Can’t this function just check if $post is null and then do something appropriate? Seems like that is what the issue is, although obviously I am not the developer.

@mattkutz,

Sorry for the confusion. It should be define('WP_DEBUG', false);. If it still doesn’t help, replace it with this:

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Thanks.

Hi, I am having the same error as well.
I would like to find a solution that stops that warning and not that stops the warning from logging.

Thank you.

1 Like

Hi there,

Kindly login through FTP then open the wp-config.php file and follow the instructions provided by @christian_y on the previous response.

Let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.