SMF Support > SMF 2.0.x Support

Internal server error... not about data file permissions

(1/4) > >>

Co:
Hello people,

I tried to install the Menu Editor Lite Mod.
Unfortunately I got the 500 internal error. I browsed forum and FAQ and found out it may have been because of file permissions.
So I checked them and corrected them 644 or 664 for files & 755 for folders.
Did nothing.
So I went checking my error_log:


--- Code: ---[29-Jun-2012 06:33:40] PHP Warning:  Unexpected character in input:  ''' (ASCII=39) state=1 in /xxx/forum/Sources/Subs.php on line 500
[29-Jun-2012 06:33:40] PHP Parse error:  syntax error, unexpected $end, expecting ')' in /xxx/forum/Sources/Subs.php on line 500
--- End code ---

Any idea? Something went wrong during mod install? Something's wrong with mod?

What should I do, just reinstall the whole forum? Or is there any simpler step to fix it?
Should I forget about using that mod as well?

Many thanks with your help in advance!
Corinne

Colin:
I would suggest soliciting assistance via the MOD dev. here: http://www.simplemachines.org/community/index.php?topic=470478.0

MrPhil:

--- Quote ---syntax error, unexpected $end
--- End quote ---
sounds like your Sources/Subs.php file got chopped off at line 500 during the mod install process. Hopefully you have a backup of the file (or there's a good one in Subs.php~ that you can replace the bad Subs.php with). Then you "parse" the instructions for mod install and manually edit Subs.php to get the mod's changes into it. If you have to go back further in time than Subs.php~, you will have to "parse" all mods and reapply their changes since the backup was made.

I'm assuming that the mod changes Subs.php, and something went wrong during the process. If, according to the mod "parse" instructions, Subs.php is not updated, then the mod is just an innocent bystander, and something else chopped the file in half. You will still have to find a recent backup and restore it, and then figure out what mods need to be reinstalled into just that file ("parse" for all mods installed since the backup was made).

Co:
Hey MrPhil,

Thank you very much for the help!

I replaced the Subs.php with the back-up.
Parsed the mod (I just only had that one :)) and applied manually the changes.

There's just one thing I was unsure:

--- Quote ---Move the included directory "/resources/menu_source" to "./Sources".
--- End quote ---
does that mean the whole folder, or the files that are in the folder?

Also:

--- Quote ---menu_ihooks.php
This file should be able to execute standalone.
menu_db_install.php
This file should be able to execute standalone.
File Operations
--- End quote ---

I'm not really sure what that means (where I should put them, and what to do with them).

Thanks again!

MrPhil:
You should only be fooling with Subs.php. Presumably all the other files are already in their proper place. Any other SMF files should already be updated, too.

Navigation

[0] Message Index

[#] Next page

Go to full version