VidYen / VidYen-WordPress-Plugins

VidYen Plugins for WordPress
GNU General Public License v2.0
9 stars 2 forks source link

Warning: A non-numeric value encountered #110

Closed mcdeimon closed 5 years ago

mcdeimon commented 5 years ago

Hi!

Today, without making any changes or doing anything new, this error has appeared on the miner's page.

Warning: A non-numeric value encountered in /var/www/vhosts/myweb.com/httpdocs/wp-content/plugins/vidyen-point-system-vyps/includes/shortcodes/vyps256.php on line 264

And the miner does not connect to the server.

The line 264 is this:

$balance = intval($remote_response['body'] / $hash_per_point);

Thanks!

VidYen commented 5 years ago

Oh that wasn't you or VYPS. The Web socket server crashed while I was sleeping.

I just rebooted and if fixed it.

Normally it should kick over to the other server, but it didn't kick over to backup as it was up but giving an error 502 Bad Gateway rather than no response.

I will keep an eye on the server, but I am going to leave this as an issue for VYPS to not only check it gets a response but if it gets a non number value from server, it knows it should just check the backup.

VidYen commented 5 years ago

@mcdeimon

Please try again and let me know if it works for you or not. Notgiven688 has some stability updates for the websocket server (memory stuff), but was waiting for the v2 cryptonight to pass that through to our changes.

VidYen commented 5 years ago

On line 254ish I need to just check $remote_response = wp_remote_get( esc_url_raw( $remote_url ) );

See if its an actual number rather than an error and if its error then tell it to try next server.

mcdeimon commented 5 years ago

Now it works perfectly! Thank you!!!

mcdeimon commented 5 years ago

It appears again...

VidYen commented 5 years ago

Fixed. Going to have it fixed permantly soon.

VidYen commented 5 years ago

I believe. Other than me messing the the servers... This should be fixed permanently for now.

VidYen commented 5 years ago

Ok. This has been fixed permantly to the best of my knowledge. Unless I kill the server.exe for some unknown reason.