Page 1 of 1

PHP Fatal Error: bscale()

Posted: Mon Jan 02, 2017 3:19 pm
by krang
Hi,

I have moved my server from Lighttpd to Nginx, on my server there are two virtual hosts and one of them is BitShop.

I have this kind of error in my logs:

Code: Select all

[error] 32503#32503: *960325 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function bcscale() in /inc/config.inc.php:103
Stack trace:
#0 /ticker/config.php(3): require_once()
#1 /ticker/market_stats.php(2): require_once('/var/www/...')
#2 //inc/common.inc.php(3): require_once('/var/www/...')
#3 //index.php(7): require_once('/var/www/...')
#4 {main}
  thrown in /inc/config.inc.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: blablablabla.onion, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "blablablabla.onion"
Any ideas? Last time my service was running on same virtual host in subfolder now when I am trying to run it on separated virtual host I have this problem.

//Edit

I thought it's going to be easy by installing bcmath

Code: Select all

sudo apt install php7.0-bcmath
it is solving problem from last post

but it looks that script is not ready for php7 :(

Code: Select all

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Math_BigInteger has a deprecated constructor in lib/Crypt/Math/BigInteger.php on line 176

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Hash has a deprecated constructor in lib/Crypt/Hash.php on line 82

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Base has a deprecated constructor in lib/Crypt/Base.php on line 121

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_RSA has a deprecated constructor in lib/Crypt/RSA.php on line 273
Temporary error messages is set off for this in my config.

Please fix this!
Thanks.

Re: PHP Fatal Error: bscale()

Posted: Sun Jan 08, 2017 2:23 pm
by krang
More about this problem reference to cron:

Code: Select all

sudo /usr/bin/php7.0 -q /cron/tick_update.php
PHP Notice:  Undefined index: SERVER_ADDR in /inc/config.inc.php on line 99
PHP Notice:  Undefined index: SERVER_PORT in /inc/config.inc.php on line 100
PHP Notice:  Undefined index: SERVER_PORT in /inc/config.inc.php on line 100
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Math_BigInteger has a deprecated constructor in /lib/Crypt/Math/BigInteger.php on line 176
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Hash has a deprecated constructor in /lib/Crypt/Hash.php on line 82
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Base has a deprecated constructor in /lib/Crypt/Base.php on line 121
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_RSA has a deprecated constructor in /lib/Crypt/RSA.php on line 273
<p>Requesting data from http://api.bitcoincharts.com/v1/weighted_prices.json ...</p>
<p>SUCCESS! weighted_prices.json has been updated!</p>

Re: PHP Fatal Error: bscale()

Posted: Wed Feb 08, 2017 3:35 am
by bitfreak
Yeah I've been told BitShop doesn't work with the newest version of PHP, you'll probably have to go back to PHP 5 until I upgrade the script.

Re: PHP Fatal Error: bscale()

Posted: Wed Feb 15, 2017 8:55 am
by krang
Cool, let me know when it is going to be ready.
Have a nice day!

Re: PHP Fatal Error: bscale()

Posted: Wed Apr 12, 2017 3:57 pm
by bitfreak
Just released a new version of BitShop, it should work with PHP 7. Let me know if you experience any issues.

Re: PHP Fatal Error: bscale()

Posted: Fri Apr 28, 2017 8:02 pm
by krang
Awesome news!

Damn my license expired :( So I can't download now new version :(
Any chance I can get some voucher for "BitShop Script (1 year license key)" http://bitfreak.info/bitshop/index.php?page=item&id=4 ?

8-)

Re: PHP Fatal Error: bscale()

Posted: Sun Apr 30, 2017 8:26 am
by bitfreak
I sent you a PM with a voucher code.

Re: PHP Fatal Error: bscale()

Posted: Tue May 16, 2017 8:52 pm
by krang
This is awesome! Thank you very much!

Yasir Electronics

Posted: Fri Feb 16, 2024 1:58 pm
by yasirelectronic