Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ~DS~ on January 09, 2010, 06:03:06 PM

Title: Modifications.english.php
Post by: ~DS~ on January 09, 2010, 06:03:06 PM
Now every time I tried to install something...my forum goes down with a error relating Modifications.english.php and cache folder. I had to uninstall them manually. Look like all my installations is put on hold figure I figure it out.
Title: Re: Modifications.english.php
Post by: JBlaze on January 09, 2010, 06:10:15 PM
Sounds like your forum isn't clearing the cache after your mods are installed.

Make sure ./cache is CHMOD to 777 or 755 (How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0))

Then you can also try to clear the cache manually (Admin -> Forum Maintenance -> Routine -> Clear file cache)
Title: Re: Modifications.english.php
Post by: ~DS~ on January 09, 2010, 06:23:34 PM
It's on 755, but will try 777, however I looked inside the cache folder where all the cache phps are...are on 644. Is this correct?
Title: Re: Modifications.english.php
Post by: ~DS~ on January 10, 2010, 08:22:58 PM
It's really frusting. I can't install them mods because it came out with a template parser everytime I install a mod. All are pointing to  Modifications.english.php and lang_index+Modifications_english_default.php. I did clear out the cache folder and had to uninstall them manually by removing mod lines everytime it crashes. Some thing is not right in the Modifications.english.php. Any help appreciated.
Title: Re: Modifications.english.php
Post by: Antechinus on January 10, 2010, 08:31:33 PM
Attach the file here so someone can take a look at it.
Title: Re: Modifications.english.php
Post by: ~DS~ on January 10, 2010, 08:41:27 PM
Quote from: Antechinus on January 10, 2010, 08:31:33 PM
Attach the file here so someone can take a look at it.
I'm afraid to install anything after that. Only if there is a feature to revert and uninstall after the any errors which would save many SMF user. Hope it's a feature in the future version.
Title: Re: Modifications.english.php
Post by: Antechinus on January 10, 2010, 09:06:48 PM
I can't see anything wrong with that Modifications.english.php but I don't understand what the other file is supposed to be.

Have you got a copy of Modifications.english.php after you have tried to install another mod and it generates the error?

ETA: knowing the exact error message might help too.
Title: Re: Modifications.english.php
Post by: ~DS~ on January 10, 2010, 09:17:50 PM
Ok, I will try the new upgraded Aeva. Using the LightModern Theme. After installing Aeva or any other mods I get this. First error:
Template Parse Error!

There was a problem loading the /cache/lang_index+Modifications_english_lightmodern.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_VARIABLE


Ok, then I deleted the cache files in the folder.

Second error I get:

Parse error: syntax error, unexpected T_VARIABLE in /home/owner/public_html/mysite.com/Themes/default/languages/Modifications.english.php on line 642

Third I goes to where this error lead and remove all lines related to the mod. So the site is back to normal again.
The attached files are before and after.

Title: Re: Modifications.english.php
Post by: SA™ on January 11, 2010, 02:44:49 AM
$txt['show_iphone_in_menu'] = "Show iphone in menu:"

should be

$txt['show_iphone_in_menu'] = 'Show iphone in menu:';
Title: Re: Modifications.english.php
Post by: ~DS~ on January 11, 2010, 02:50:48 AM
Quote from: Sleepy Arcade on January 11, 2010, 02:44:49 AM
$txt['show_iphone_in_menu'] = "Show iphone in menu:"

should be

$txt['show_iphone_in_menu'] = 'Show iphone in menu:';
Edited...clear the cache...Wow, that fixed it. Kudos to you. Will send the author about this.
Title: Re: Modifications.english.php
Post by: SA™ on January 11, 2010, 02:52:00 AM
you welcome