Forum Maintenance > Integration Hooks Errors

Started by cgeek, June 18, 2023, 08:45:00 AM

Previous topic - Next topic

cgeek

Hi Folks.  Came across this in my travels.  I have the latest v2.1.4.

Go to Admin > Maintenance > Forum Maintenance > Integration Hooks, generates these 2 errors in the log:

Error
Type of error
Undefined_vars
Error message
8: Undefined index: hooks_disable_legend_temp
File
/home/yyz/public_html/Sources/ManageMaintenance.php
Line
2016
URL of page causing the error
https://www.yyz.com/index.php?action=admin;area=maintain;sa=hooks;c4d33610=c266979c3d05f3cf026c515b754deb35
Backtrace information
#0: smf_error_handler()
Called from /home/yyz/public_html/Sources/ManageMaintenance.php on line 2016
#1: list_integration_hooks()
Called from /home/yyz/public_html/Sources/Subs.php on line 6033
#2: call_helper()
Called from /home/yyz/public_html/Sources/ManageMaintenance.php on line 114
#3: ManageMaintenance()
Called from /home/yyz/public_html/Sources/Admin.php on line 499
#4: AdminMain()
Called from /home/yyz/public_html/index.php on line 184

And...

Error
Type of error
Undefined_vars
Error message
8: Undefined index: hooks_disable_legend_temp_missing
File
/home/yyz/public_html/Sources/ManageMaintenance.php
Line
2017
URL of page causing the error
https://www.yyz.com/index.php?action=admin;area=maintain;sa=hooks;c4d33610=c266979c3d05f3cf026c515b754deb35
Backtrace information
#0: smf_error_handler()
Called from /home/yyz/public_html/Sources/ManageMaintenance.php on line 2017
#1: list_integration_hooks()
Called from /home/yyz/public_html/Sources/Subs.php on line 6033
#2: call_helper()
Called from /home/yyz/public_html/Sources/ManageMaintenance.php on line 114
#3: ManageMaintenance()
Called from /home/yyz/public_html/Sources/Admin.php on line 499
#4: AdminMain()
Called from /home/yyz/public_html/index.php on line 184

Dave J

Although I just found a theme error based on your post, I do not get the errors you're saying
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

cgeek

Dug a bit more into this.  I can see these entries in Admin.english.php from a clean install of 2.1.4 but not in 2.1.3. 

$txt['hooks_disable_legend_temp'] = 'the hook is temporary';
$txt['hooks_disable_legend_temp_missing'] = 'temporary hook not found';

Adding them to the language file got rid of the errors.

So it seems that the upgrade from 2.1.3 -> 2.1.4 did not add them as they should have, but I can see them clearly in the upgrade XML.

I'll try and back out 2.1.4 on my dev server and re-add and see if I may have missed an error/warning somewhere.

cgeek

Well this is new for me.  I uninstalled 2.1.4 patch and attempted the patch again.  All tests were successful and the patch seemed to apply fine with no error messages.  However, those above language entries were not applied. 

No messages in SMF or in the error_log.  Is there somewhere else I might see any messages about why they failed?

Aleksi "Lex" Kilpinen

The edits are included in the patch. They should normally even work if you are using a different language.
Could it be possible that there's some sort of permission issue on your server, stopping the edits from going through?
Under some setups it's possible for files to have ended up owned by different users depending on how they were uploaded, which could cause issues like this.
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

cgeek

Quote from: Aleksi "Lex" Kilpinen on June 18, 2023, 10:25:05 AMThe edits are included in the patch. They should normally even work if you are using a different language.
Could it be possible that there's some sort of permission issue on your server, stopping the edits from going through?
Under some setups it's possible for files to have ended up owned by different users depending on how they were uploaded, which could cause issues like this.

I was thinking the same, but I double checked and all files are owned by my SMFuser.  Permissions are mixed between 666 and 644, but I have not seen that cause any issues.  I did change it to 666 to see if that mattered, but it did not change anything.  Still poking around.

live627

Not using English? The patch only works with English IIRC.

Advertisement: