craiglyoung / yiimp_installation_script

0 stars 5 forks source link

Internal Server Error #3

Closed sp1k36667 closed 9 months ago

sp1k36667 commented 1 year ago

image by disable Has getinfo in coin add

craiglyoung commented 1 year ago

What does it say in your debug.log file? A bit more info would be helpful, thanks.

sp1k36667 commented 1 year ago

nothing in debug.log but wen you add a new coin and disable the option Has getinfo get this error

I think it's a bug that has to do with php8.2

error for copy to google "Non-static method ExplorerController::createUrl() cannot be called statically"

[2023-10-15 14:49:58] BackendPricesUpdate [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price bittrex ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price poloniex ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price safecex ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price bleutrade ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price yobit ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price c-cex ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price alcurex ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] BackendPricesUpdateExchange [2023-10-15 14:49:58] ==== Start Sync Market Price cryptopia ==== [2023-10-15 14:49:58] ==== End Sync Market Price ==== [2023-10-15 14:49:58] ==== END BackendPricesUpdate ==== [2023-10-15 14:49:58] CronjobController::actionRun 3 [2023-10-15 14:51:28] CronjobController::actionRun 4 [2023-10-15 14:52:58] CronjobController::actionRun 5 [2023-10-15 14:54:29] CronjobController::actionRun 6 [2023-10-15 14:55:59] CronjobController::actionRun 7

sp1k36667 commented 1 year ago

i think i found what wenn u change the numer off the coin in url like /site/coin?id=9 this is nor working to /site/coin?id=6 this is working bur wrong coin

craiglyoung commented 1 year ago

I have been able replicate an internal server error when I change coins, though not quite the same as yours. I will take a look and see if I can see what is going on, but perhaps it is php version related.

craiglyoung commented 1 year ago

I have manage to fix my error, but I am not sure if it is the same as what you're experiencing. Mine was simply that I didn't put in an RPC Host (on the Daemon tab). As soon as that was filled out, all working fine for me.

If you are still experiencing issues, can you please provide step by step instructions on how to replicate the issue.

sp1k36667 commented 1 year ago

i will install new instance today then i report

sp1k36667 commented 1 year ago

Install settings: Domain Name (no http:// or www. just : example.com or pool.example.com or 185.22.24.26) : xxx.233.162.xxx Are you using a subdomain (mycryptopool.example.com?) [y/N] : n Enter support email (e.g. admin@example.com) : admin@example.com Set Pool to AutoExchange? i.e. mine any coin with BTC address? [y/N] : n Enter the Public IP of the system you will use to access the admin panel (http://www.whatsmyip.org/) : xxx.233.158.xxx Install Fail2ban? [Y/n] : n Install UFW and configure ports? [Y/n] : y Install LetsEncrypt SSL? IMPORTANT! You MUST have your domain name pointed to this server prior to running the script!! [Y/n]: n

Commands after install: sudo reboot cd yiimp_installation_script/utils/ bash delcoin.sh

Add new Coin: General

Settings

Exchange

Daemon

Links

then i click create overview

now click on the new coin and you get this error

error

craiglyoung commented 1 year ago

Thanks, I can recreate the issue from that.

It appears to be a Yii issue, perhaps due to php8, in the ExplorerController.php file in the function createUrl. Unfortunately I do not know anything about Yii, so hoping someone else may be able to help out with this.

In the meantime, it should get you past this problem if you keep your hasgetinfo tickbox enabled.

sp1k36667 commented 1 year ago

I no longer think it's a problem with the php8 because if I change the ID in the URL it works. I think it's a problem with the DB and it doesn't transfer the information correctly when you change it in the URL /site/coin/id/6 If you change the id to 8, the same error occurs even though coin id 8 does not exist

craiglyoung commented 1 year ago

If I simply change the hasgetinfo DB value for the coin from 1 to 0, it fails for that coin. Changing it back from 0 to 1 makes it work again. Interesting.

craiglyoung commented 1 year ago

Updated the createUrl function to be static - appears to have fixed the issue. Have updated the Yiimp repo to reflect the update.