How to fix "Warning: A non-numeric value encountered in" WP
On my WordPress page I use the plugin
occupancy plan
"https://wordpress.org/plugins/occupancyplan/" after the update to PHP 7.3 wordpress gives the following error message:
Warning: A non-numeric value encountered in /homepages/XX/XXXXXXXXXX/htdocs/XXXXXXXXXX/wp-content/plugins/occupancyplan/occupancy_plan_classes.php on line 4 - 38 and on line 620, 641, 657
How can I solve the problem?
Solutions
it's probably a bit late but try adding this validation to every line with that error!
//fix issue with tax when it's not selected it
IF(empty ($ variable name)){
/* null */
}else{
$return = whatever was previously at the line
At the end you must to return something
}
return floatval( $return );
Good Luck!
Similar questions
How to fix strange 500 Error after Editing Menu?
I have strange situation which just started which I seem to be unable to resolved. I am not sure what this might be related to but I think I remember reading somewhere that this has happened to someone else. Upon logging into WordPress then going into the menu management area, then clicking on "screen options" and enabling the view of a menu metabo...
Missing sidebar parameter "fix" - before_content
as you know the sidebar parameters from register_sidebar() that control the widget layout are the problem is that you cannot implement certain type of designs because a parameter like 'before_content' is missing. for example: a HTML structure like this is only possible if you add <div class="content"> in the after_title parameter. The problem...
How to reset canonical URLs / fix redirect loop
Couldn't find anything in the related questions, so here goes: I have a post which, when viewed on the site, is returning a redirect loop. The error page is showing an address for the post that originated when the post was added to a category that was subsequently deleted. www.macrowikinomics.com/innovation-communities/business-economics/will-faceb...
What PNG Fix script do you recommend for IE6?
I saw this post on SO but the selected solution got a couple of really unflattering comments... I need to add a png fix script to my theme to handle issues with PNG support on IE6 predominantly. I have customers who say that IE6 is upwards of 1/3rd of their traffic if you can believe that. I know that Google is completely abandoning IE6 in Google a...
How to fix broken upgrade to 3.1
As soon as i saw the message on WPSE about the 3.1 release i immediately went a did a switch on my local installation(SVN switch). Only issue is the wp-settings.php is trying to include a non-existant file. Basically i'm stuck seeing the following two error messages. Warning: require(MYPATH/wp-includes/classes.php) [function.require]: failed to ope...
Fix threaded comments
http://anasianscreations.co.cc/jeffman/blog/uncategorized/hello-world/ I have looked all day for a solution but whenever you click on reply to this comment, instead of the comment box being displayed underneath you are redirected to the anchor. Also when I am in this theme, and you reply to a post, it does not register as a reply to a reply, instea...