News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mod installs fully, but breaks with error message and states to be not installed

Started by voom, June 10, 2022, 09:25:54 AM

Previous topic - Next topic

voom

Quote from: Chen Zhen on June 14, 2022, 11:55:23 PMHave you tried using the repair settings tool to remove all hooks & then use the upgrade package method to restore SMF to its default state? This process does not truncate your members or messages/posts.
I did this: created a full clone, use repair tool, install clean set of files (deleted Sources and Themes pre) and now it is completely trashed. repair tool on "Repair MyISAM tables" gives me a 500 error. The forum index gives me an error loop instantly:

array(3) {
[0]=> array(3) { ["file"]=> string(70) "/var/www/vhosts/.../Sources/Subs.php" ["line"]=> int(6031) ["function"]=> string(9) "log_error" }
[1]=> array(3) { ["file"]=> string(61) "/var/www/vhosts/.../index.php" ["line"]=> int(309) ["function"]=> string(11) "call_helper" }
[2]=> array(3) { ["file"]=> string(61) "/var/www/vhosts/.../index.php" ["line"]=> int(191) ["function"]=> string(8) "smf_main" }
}
Error loop.

As if that were not enough, on the live install I used "Clear DB Logs" because I thought, logs, well, are just logs. Something temporary... Now ALL modifications were "not installed".

I restored the log_packages table from an earlier full dump. So that is back to the status, where the 3 mods are "not installed".

But all in all - I can't get this error loop under control... Back to square one:

any installation of a mod > installs, then error loop, no log in the log_packages
fix_packages > error loop
repair_settings - Repair MyISAM tables > 500 error

Forum runs for now; any new mod, mod update, SMF patch, SMF update will probably fail

One thought: If I made a fresh install of SMF and installed the 3 packages, exported the log_packages entries and copied them over, I might get the actual status in the packet manager.

But still, any action of installing or uninstalling on the live instance will probably produce the error loop. So foremost I need a fix for that.




Kindred

you used "clear db logs" as the admin option?

That will not reset the install state of packages/mods...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

Quote from: Kindred on June 16, 2022, 01:09:49 PMyou used "clear db logs" as the admin option?

That will not reset the install state of packages/mods...
Yes, that is what I used, and then log_packages was empty and all packages showed "Install..." in the package manager.

After restoring the content of the old log_packages table, the packages, except the 3 newest ones, showed "Uninstall..." in the package manager as before.

voom

Here is what the error log shows every few seconds:

QuoteHook-Aufruf: Die Funktion "loadInviteLang" in der Datei "/var/www/vhosts/..." konnte nicht aufgerufen werden.
URL der Seite die den Fehler erzeugte
https://.../index.php?pretty;action=admin&area=logs;sa=errorlog;desc;b54034184ea7=e9eb65688337c130a9e9fe4003b11c12
Backtrace-Informationen
#0: call_integration_hook()
Aufgerufen von /var/www/vhosts/.../Sources/Load.php in Zeile 481
#1: reloadSettings()
Aufgerufen von /var/www/vhosts//index.php in Zeile 143

QuoteDie Callable "loadInviteLang" konnte nicht aufgerufen werden.
URL der Seite die den Fehler erzeugte
https://.../index.php?pretty;action=admin&area=logs;sa=errorlog;desc;b54034184ea7=e9eb65688337c130a9e9fe4003b11c12
Backtrace-Informationen
#0: call_helper()
Aufgerufen von /var/www/vhosts/.../Sources/Subs.php in Zeile 5797
#1: call_integration_hook()
Aufgerufen von /var/www/vhosts/.../Sources/Load.php in Zeile 481
#2: reloadSettings()
Aufgerufen von /var/www/vhosts/.../index.php in Zeile 143

Don't know if there is any relation to the other problem, but just in case...

Also here some from php error_log:

Quote[Tue Jun 14 14:28:50.862838 2022] [proxy_fcgi:error] [pid 1679689:tid 139730721175296] [client 123.176.28.91:0] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: current_subaction in /var/www/vhosts/.../Sources/Class-FancyBox.php on line 235PHP message: PHP Notice:  Undefined index: is_logged in /var/www/vhosts/.../Sources/Subs.php on line 4325PHP message: PHP Notice:  Undefined index: can_mod in /var/www/vhosts/.../Sources/Subs.php on line 5409PHP message: PHP Notice:  Undefined index: is_guest in /var/www/vhosts/.../Sources/Subs.php on line 5428PHP message: PHP Notice:  Undefined index: id in /var/www/vhosts/.../Sources/Subs.php on line 5433PHP message: PHP Notice:  Undefined index: id in /var/www/vhosts/.../Sources/Subs.php on line 5442PHP message: PHP Notice:  Undefined index: session_var in /var/www/vhosts/.../Sources/Subs.php on line 5588PHP message: PHP Notice:  Undefined index: session_id in /var/www/vhosts/.../Sources/Subs.php on line 5588PHP message: PHP Notice:  Undefined index: can_register in /var/www/vhosts/.../Sources/Subs.php on line 5598PHP message: PHP Notice:  Undefined index: template_layers in /var/www/vhosts/.../Sources/Subs.php on line 4562PHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/vhosts/.../Sources/Subs.php on line 4562PHP message: PHP Notice:  Undefined index: login_url in /var/www/vhosts/.../Themes/default/Login.template.php on line 256PHP message: PHP Notice:  Undefined index: can_register in /var/www/vhosts/.../Themes/default/Login.template.php on line 267PHP message: PHP Notice:  Undefined index: session_var in /var/www/vhosts/.../Themes/default/Login.template.php on line 304PHP message: PHP Notice:  Undefined index: session_id in /var/www/vhosts/.../Themes/default/Login.template.php on line 304', referer: https://.../
[Wed Jun 15 10:38:18.628333 2022] [proxy_fcgi:error] [pid 1703540:tid 139730719725312] [client 62.116.41.87:0] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: instant_reply in /var/www/vhosts/.../Sources/Subs-Post.php on line 1355', referer: https://.../pm/?sa=send;u=1
[Thu Jun 16 08:55:22.889451 2022] [proxy_fcgi:error] [pid 1822775:tid 139730852730624] [client 80.187.117.146:0] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: instant_reply in /var/www/vhosts/.../Sources/Subs-Post.php on line 1355', referer: https://.../pm/?sa=send;u=1
[Thu Jun 16 13:43:57.860614 2022] [proxy_fcgi:error] [pid 1822774:tid 139730768803584] [client 80.187.117.146:0] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: instant_reply in /var/www/vhosts/.../Sources/Subs-Post.php on line 1355', referer: https://.../pm/?sa=send;u=1
[Thu Jun 16 18:39:17.434532 2022] [proxy_fcgi:error] [pid 1853378:tid 139730632177408] [client 89.0.248.178:0] AH01071: Got error 'PHP message: PHP Warning:  Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0PHP message: PHP Warning:  Unknown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions) in Unknown on line 0', referer: https://.../forum/

Kindred

that error "loadInviteLang" would appear to be from some sort of invite mod that is probably removed, but still has a hook attached.

anyway... the 500 error SHOULD be tracked in your server logs -- and I don't see that there

unless it's this one? Warning:  Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0PHP message: PHP Warning:  Unknown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions) in Unknown on line 0', referer: https://.../forum/
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

Quote from: Kindred on June 16, 2022, 03:21:43 PMthat error "loadInviteLang" would appear to be from some sort of invite mod that is probably removed, but still has a hook attached.
Yes, that was installed and removed. Could I just delete the hook somewhere? DB?

It is not in the package manager any more (uninstalled and deleted files) but the uninstaller seems to not have removed anything from the db. There are data in the smf_settings and in log_packages it exists, but install_state shows "0"
 
Quote from: Kindred on June 16, 2022, 03:21:43 PManyway... the 500 error SHOULD be tracked in your server logs -- and I don't see that there
This is not the full log, only the last entries that concern SMF

Quote from: Kindred on June 16, 2022, 03:21:43 PMunless it's this one? Warning:  Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0PHP message: PHP Warning:  Unknown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions) in Unknown on line 0', referer: https://.../forum/
The 500 came with certain tools of the repair_settings.php

Kindred

A 500 error with repair_settings.php indicates a Nad host configuration somewhere.

Regarding the hooks, repair_settings.php can remove hooks. Also manually, in the smf_settings table search for LIKE %integrat%
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

Quote from: Kindred on June 16, 2022, 06:41:45 PMA 500 error with repair_settings.php indicates a Nad host configuration somewhere.
Nad?

Quote from: Kindred on June 16, 2022, 06:41:45 PMRegarding the hooks, repair_settings.php can remove hooks. Also manually, in the smf_settings table search for LIKE %integrat%
There are 3 entries concerning "invite" in that table, but none of them has anything with "integrat". I'll check the package of that plugin, what it inserts into the db.

Illori

nad=bad typo'ed

you also dont need to check the database for hooks, there is a built in page admin -> maintenance ->forum maintenance -> integration hooks you can view and make some changes to them here.

voom

There I found 2 missing hooks by the invite mod, which I removed

Also, there are several TinyPortal Hooks, that are "not found". Still TinyPortal works (except I cannot use all panels, some don't show if there are active blocks inside, and they are turned on).

That TinyPortal was probably the mod that caused this issue for me, it is of course very interesting, that all those hooks are missing. Again, there is sth that I don't get: where does the information come from, that these hooks should be in the database?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

Quote from: Kindred on June 16, 2022, 11:30:00 PMIt comes from the mod installation
That much is clear. What I mean is, if there are no files left and the mod installs only hooks, where exactly does the information come from, that these hooks are not there? Other tables in the database?

And: how can a mod function, that installs only hooks, when most hooks or all hooks are not there?

Kindred

If a hook is identified in the database tables,  then smf tries to call that file and function at the point of the hook trigger.

That's why hooks have to be removed.
If the hook is present,  and the file or function is missing,  then you get errors.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

So "the hook is missing" means, that it exists in the database, but the file or function it calls, does not exist?

So, here I have TinyPortal, installing only hooks and consisting only of additional files, that has its hooks in the database, but not the log entry in log_packages, and has installed all files but a few, that are now called from the database but are not found?

In that case all I would have to do, were to upload all tp files from the package manually?

I am close to giving up on SMF completely. I know you try to help, but it is too much at once with too much uncertainty, if I get it right. I cannot follow the logic of how modifications work.

But thank you, really, I mean it. The problem is my not understanding this enough, to keep working with SMF and probably having to deal with new problems every time I install something or update something.

Kindred

Thing is..  you should not be having these problems.   I have never seen anyone with the issues that you report, and I can't recreate them....

I understand your frustration,  but the issues you are seeing are not a normal thing in SMF, and, if we can fix your installation,  you should not have to go through that again.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

voom

Well, this is not the first issue I am having, it's always a little thing here and there, then it seems to be fixed, but at some point there are little things left behind that accumulate etc. The 29 modifications I am running right now are mostly things, that I cannot do without. Some did not install at all. One or two I installed manually. If I understood the mechanisms behind it all better, I might be willing to try to make it work, but I have no "headspace" left for that kind of thing next to work, where I have to deal with many more apps and coding design principles.

It was supposed to be a small private community, but we decided to go in a different direction and open it publicly. I will not do that with a forum I do not feel comfortable to be able to guarantee it (data) is secure and it is stable. The members made some donations and we will move to Xenforo. I do appreciate SMF and had an SMF running about 20 years ago for a while. I remember I had similar problems at the end, when it came to updating. I tend to make many modifications and at one point I always land in kind of a dead end.

Thanks again  :)

Kindred

Well, youb do what you need to...
I have had 160 mods installed at one time.

Your issues seem to stem from some sort of cascading failure -- once one thing went wrong, and was not properly fixed, it led to other things getting installed incorrectly,  etc.

If it mattered at this point,  we could probably recover the system and data and then install the must-have mods...   but if you've decided to go with xenforo, then good luck to you. :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Steve

DO NOT pm me for support!

hungarianguy

Quote from: voom on June 17, 2022, 11:54:12 AMWell, this is not the first issue I am having, it's always a little thing here and there, then it seems to be fixed, but at some point there are little things left behind that accumulate etc. The 29 modifications I am running right now are mostly things, that I cannot do without. Some did not install at all. One or two I installed manually. If I understood the mechanisms behind it all better, I might be willing to try to make it work, but I have no "headspace" left for that kind of thing next to work, where I have to deal with many more apps and coding design principles.

It was supposed to be a small private community, but we decided to go in a different direction and open it publicly. I will not do that with a forum I do not feel comfortable to be able to guarantee it (data) is secure and it is stable. The members made some donations and we will move to Xenforo. I do appreciate SMF and had an SMF running about 20 years ago for a while. I remember I had similar problems at the end, when it came to updating. I tend to make many modifications and at one point I always land in kind of a dead end.

Thanks again  :)

Be careful when installing addons at xenforo and especially when you buy them. There are lots of bad coders and scammers operating at xenforo.

Advertisement: