PHP Fatal Error: bscale()

Look here if you're having trouble with BitShop
Post Reply
User avatar
krang
Posts: 28
Joined: Mon Dec 14, 2015 10:27 am
Location: Dimension X
Contact:

PHP Fatal Error: bscale()

Post 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.
User avatar
krang
Posts: 28
Joined: Mon Dec 14, 2015 10:27 am
Location: Dimension X
Contact:

Re: PHP Fatal Error: bscale()

Post 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>
User avatar
bitfreak
Site Admin
Posts: 97
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

Re: PHP Fatal Error: bscale()

Post 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.
User avatar
krang
Posts: 28
Joined: Mon Dec 14, 2015 10:27 am
Location: Dimension X
Contact:

Re: PHP Fatal Error: bscale()

Post by krang »

Cool, let me know when it is going to be ready.
Have a nice day!
User avatar
bitfreak
Site Admin
Posts: 97
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

Re: PHP Fatal Error: bscale()

Post by bitfreak »

Just released a new version of BitShop, it should work with PHP 7. Let me know if you experience any issues.
User avatar
krang
Posts: 28
Joined: Mon Dec 14, 2015 10:27 am
Location: Dimension X
Contact:

Re: PHP Fatal Error: bscale()

Post 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-)
User avatar
bitfreak
Site Admin
Posts: 97
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

Re: PHP Fatal Error: bscale()

Post by bitfreak »

I sent you a PM with a voucher code.
User avatar
krang
Posts: 28
Joined: Mon Dec 14, 2015 10:27 am
Location: Dimension X
Contact:

Re: PHP Fatal Error: bscale()

Post by krang »

This is awesome! Thank you very much!
laji
Posts: 2
Joined: Tue Nov 16, 2021 2:17 pm

Re: PHP Fatal Error: bscale()

Post by laji »

laji
Posts: 2
Joined: Tue Nov 16, 2021 2:17 pm

Re: PHP Fatal Error: bscale()

Post by laji »

Post Reply