I am getting the following error and its only just happened since coming into 2010, previously I was not getting this error, can someone assist please?
8: Undefined index: action
File: /home/domain/public_html/software/Themes/default/PortalArticles.template.php (main_above sub template - eval?)
Line: 499
I am unable to access the admin menu or anything, if I try to load other pages I just get that message or some other link relating to a main_above sub template - eval error.
Using the following version: (1.1.10)
Please assist. Thank you.
Can anyone assist me here please?
Have you installed any mods recently? Do you have the Ajaxchat mod installed?
No mods have been installed recently, the trouble only started when we went into 2010.
Hi Tyrsson, I found another post you assisted with and was successful, I found it using Google:
http://www.simplemachines.org/community/index.php?topic=328562.0
Is there anything from there I can do to start and assist?
If I remember correctly the problem is going to be in the index.php file. I notice the file listed is not a default smf file. Can you please attach the top level index.php file from your site.
Here is the main index file for the forum.
Please BACK UP the original file and try the one that is attached.
Get the following msg after replacing the file:
8: Undefined index: action
File: /home/domain/public_html/software/Themes/default/PortalArticles.template.php (main_above sub template - eval?)
Line: 499
any more news on this error please?
Please install this mod to disable temp eval (Please read the documentation on the mod page for how to use the mod).
Clear the error log and reload the page and then post the new errors here.
Errr which mod?
Sorry was replying to several topics at the same time and thought I included the link.
Disable Temp Eval (http://custom.simplemachines.org/mods/index.php?mod=2054)
Im a bit confused on what to do with the xml files, plus I red the docs on the mod site and editing the files but im still lost.
Just install the package via the package manager like any other mod. Should be no reason as to why you would need to do anything with the xml files.
admincp>packages>upload a package> click install. If all test pass then click apply now.
Leave the file zipped ;)
hmmm I dont have access to the site, I get the error msg no matter where I go, I cant access the admin menu at all, I get the error then the page stops loading.
Whatever page I load I get the message (main_above sub template - eval?)
Is this on the default theme or a custom theme?
default theme
For 1.x
Go into phpMyAdmin ( What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0) ) and click on your database. Then click on the SQL tab and copy paste the following code and run it:
To Disable temp eval
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Use the forum a little and try to regenerate new errors. If any are found, post the new ones here. Then run this query to undo the change we made earlier:
To re-enable temp eval
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Added sql and it says:
8: Undefined index: action
File: /home/domain/public_html/software/Themes/default/index.template.php
Line: 499
Line 499 and 500:
if ($_POST["action"] == "affiliateadmin")
$context['current_action'] = $_POST["action"];
Please attach that file to your next post and a link to the last mod you were trying to install when this error showed up.
link to the mod huh? The error showed up when I simply tried to logon to the site, I can login to the site, buit then I get the error and everything stops loading, I cant access anything.
Try this file and see if your still getting the error.
Excellent that worked, what was the problem?
There is a message that says: This patch file will update your forum to SMF 1.1.11., should I upgrade?
Error:
512: parseModification(): The filename './index.php' is not a full path!
File: /home/domain/public_html/software/Sources/Subs-Package.php
Line: 1339
Thats trying to remove the current mods I have which is only 5 mods.
1. Hack's Park Shoutbox 2.0.1 [ Uninstall ]
2. Affiliate System 1.1 [ Uninstall ]
3. SimplePortal 2.3 [ Uninstall ]
4. PaypalDonations 2.0 [ Uninstall ]
5. DisableTemplateEval 1.2 [ Uninstall ]
Okay just an update, ive killed off the affiliate mod which I had on there from the beginning, ive gone through the files and removed everything. In the installed packages area though when I try to uninstall a mod I get this message:
Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Why are those files failing?
The above happens on any mod, except the affiliate mod, if I try to uninstall the mod which I know isnt there I get this message:
512: parseModification(): The filename './index.php' is not a full path!
File: /home/domain/public_html/software/Sources/Subs-Package.php
Line: 1339
Line 1339 says this:
trigger_error('parseModification(): The filename \'' . $working_file . '\' is not a full path!', E_USER_WARNING);
Any help to understand this is appreciated. Thank you.
Hi. I had a similar problem and couldn't understand which "Line: 603" my forum was talking about. You made me find out it was the index.template.php file, and I could get it fixed. I'm writing now just to share and thank you.