News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Cannot install mods

Started by hustreamload, April 09, 2022, 09:53:26 AM

Previous topic - Next topic

hustreamload

Hello, after upgrading from 2.0.19 to 2.1.1 I cannot install any package or theme. Php version is 8.0. We are on shared server. Error msg: "This page is not working now. HTTP ERROR 500". Any idea how to solve it?

Doug Heffernan

Quote from: hustreamload on April 09, 2022, 09:53:26 AMHello, after upgrading from 2.0.19 to 2.1.1 I cannot install any package or theme. Php version is 8.0. We are on shared server. Error msg: "This page is not working now. HTTP ERROR 500". Any idea how to solve it?


That error usually indicates a server problem. Who is your host?

Can you downgrade php to 7.4., give it another try to install mods and see how it will go?

Aleksi "Lex" Kilpinen

A HTTP 500 is a server side error, and should always be logged in the server error log.
The log should include further information, so if you have access to the log you should see what exactly gets logged when that error comes up.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

hustreamload

Quote from: Aleksi on April 09, 2022, 10:06:16 AMA HTTP 500 is a server side error, and should always be logged in the server error log.
The log should include further information, so if you have access to the log you should see what exactly gets logged when that error comes up.

hello, the server does not show any error:

hustreamload

Quote from: Doug Heffernan on April 09, 2022, 10:05:00 AMThat error usually indicates a server problem. Who is your host?

Can you downgrade php to 7.4., give it another try to install mods and see how it will go?

Hello, I've switched back the server to php7.4:


The error msg has been changed:
array(14) {
  • => array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [2]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(138) ["function"]=> string(12) "smf_db_query" } [3]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(298) ["function"]=> string(9) "log_error" } [4]=> array(1) { ["function"]=> string(17) "smf_error_handler" } [5]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(1027) ["function"]=> string(22) "mysqli_stmt_bind_param" } [6]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(129) ["function"]=> string(19) "smf_db_error_insert" } [7]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [8]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [9]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(928) ["function"]=> string(12) "smf_db_query" } [10]=> array(3) { ["file"]=> string(43) "/home/strea334/public_html/Sources/Subs.php" ["line"]=> int(6001) ["function"]=> string(14) "PackageInstall" } [11]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(91) ["function"]=> string(11) "call_helper" } [12]=> array(3) { ["file"]=> string(44) "/home/strea334/public_html/Sources/Admin.php" ["line"]=> int(499) ["function"]=> string(8) "Packages" } [13]=> array(3) { ["file"]=> string(36) "/home/strea334/public_html/index.php" ["line"]=> int(187) ["function"]=> string(9) "AdminMain" } } Error loop.


Doug Heffernan

#6
Can you clear the error log and try to install a mod again and post here the error that will be logged in at the error log page, but please post it inside the code tags.  i.e:
 error code here
You mentioned that you upgraded to 2.1.1. from 2.0.19. Can you please tell us how did you upgrade your forum? Did you actually run the upgrade.php file?

hustreamload

The process was the following: through the file manager I uploaded the upgrade zip-file, extracted there, and then run upgrade.php. As this error apperaed after the installation I have repeated the whole process an hour later, but the result was the same.

hustreamload

Where can I find the error log? In the DB? Or you think of the server side...because the server's error log is empty, as I mentioned it

Doug Heffernan

Quote from: hustreamload on April 09, 2022, 01:01:12 PMThe process was the following: through the file manager I uploaded the upgrade zip-file, extracted there, and then run upgrade.php.

Did you just extracted it there somewhere randomly, or did you overwrite your forum files with those from the large upgrade 2.1.1. package?

Quote from: hustreamload on April 09, 2022, 01:03:20 PMWhere can I find the error log? In the DB? Or you think of the server side...because the server's error log is empty, as I mentioned it

If the error on the server side is empty, have a look at the error log in your forum 's Admin Panel and see if any error has been logged in there.

Aleksi "Lex" Kilpinen

If you get a 500 error, and it's not logged somewhere you can see - then I would suggest you ask your host about that. 500 errors really should be logged, and are usually useful in pinpointing issues. 
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

hustreamload

I have deleted all earlier error log of the forum in the forum admin panel. Then I tried to install the Tinyportal , the result was the same:

"array(14) {
  • => array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [2]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(138) ["function"]=> string(12) "smf_db_query" } [3]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(298) ["function"]=> string(9) "log_error" } [4]=> array(1) { ["function"]=> string(17) "smf_error_handler" } [5]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(1027) ["function"]=> string(22) "mysqli_stmt_bind_param" } [6]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(129) ["function"]=> string(19) "smf_db_error_insert" } [7]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [8]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [9]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(928) ["function"]=> string(12) "smf_db_query" } [10]=> array(3) { ["file"]=> string(43) "/home/strea334/public_html/Sources/Subs.php" ["line"]=> int(6001) ["function"]=> string(14) "PackageInstall" } [11]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(91) ["function"]=> string(11) "call_helper" } [12]=> array(3) { ["file"]=> string(44) "/home/strea334/public_html/Sources/Admin.php" ["line"]=> int(499) ["function"]=> string(8) "Packages" } [13]=> array(3) { ["file"]=> string(36) "/home/strea334/public_html/index.php" ["line"]=> int(187) ["function"]=> string(9) "AdminMain" } } Error loop."

The server side error log is still empty.

The error log in the forum is more than interesting:


I'm not flori, he is another, normal user.

The Backtrace information is following:


Some translation from Hungarian:  A hiba típusa = Type of the error; Hibaüzenet= Error message; A hibát okozó oldal címe= The address of the page causing the error

Thanks for your help.

Arantor

So it's trying a database query to see if the package is installed and the query fails, then it tries to log that the query failed, and fails again - hence error loop.

Do you have an smf_log_packages table and what columns are in it?
Holder of controversial views, all of which my own.


hustreamload

smf_log_packages in pdf are attched

hustreamload

+ forum maintenance has not found any error....

Illori

$packagesdir = do you have this line in your Settings.php file? if so does it have a value path listed that is found on your server? does the folder actually exist there?

Doug Heffernan

Regarding the error about the path to the attachment directory being incorrect, can you download and run the repair_settings.php tool?

What is repair_settings.php?

That should fix it.

hustreamload

Quote from: Illori on April 09, 2022, 03:52:19 PM$packagesdir = do you have this line in your Settings.php file? if so does it have a value path listed that is found on your server? does the folder actually exist there?

Yes, the value is:
$packagesdir = '/home/strea334/public_html/Packages';

and this is its content on server:


as you see, incl. Tinyportal2.2.1, which cannot be installed (nor any other mod)

hustreamload

The error message after trying to install any mod:
array(14) {
  • => array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [2]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(138) ["function"]=> string(12) "smf_db_query" } [3]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(298) ["function"]=> string(9) "log_error" } [4]=> array(1) { ["function"]=> string(17) "smf_error_handler" } [5]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(1027) ["function"]=> string(22) "mysqli_stmt_bind_param" } [6]=> array(3) { ["file"]=> string(45) "/home/strea334/public_html/Sources/Errors.php" ["line"]=> int(129) ["function"]=> string(19) "smf_db_error_insert" } [7]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(590) ["function"]=> string(9) "log_error" } [8]=> array(3) { ["file"]=> string(52) "/home/strea334/public_html/Sources/Subs-Db-mysql.php" ["line"]=> int(494) ["function"]=> string(12) "smf_db_error" } [9]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(928) ["function"]=> string(12) "smf_db_query" } [10]=> array(3) { ["file"]=> string(43) "/home/strea334/public_html/Sources/Subs.php" ["line"]=> int(6001) ["function"]=> string(14) "PackageInstall" } [11]=> array(3) { ["file"]=> string(47) "/home/strea334/public_html/Sources/Packages.php" ["line"]=> int(91) ["function"]=> string(11) "call_helper" } [12]=> array(3) { ["file"]=> string(44) "/home/strea334/public_html/Sources/Admin.php" ["line"]=> int(499) ["function"]=> string(8) "Packages" } [13]=> array(3) { ["file"]=> string(36) "/home/strea334/public_html/index.php" ["line"]=> int(187) ["function"]=> string(9) "AdminMain" } } Error loop.

There is no error log about this!
Is there any interesting in this msg?

hustreamload

Quote from: Doug Heffernan on April 09, 2022, 03:56:35 PMRegarding the error about the path to the attachment directory being incorrect, can you download and run the repair_settings.php tool?

What is repair_settings.php?

That should fix it.

I have fixed the attachment directory path, but the error remains

Advertisement: