Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

main_above sub template - eval?

Aloittaja JF3000, tammikuu 02, 2010, 02:42:44 IP

« edellinen - seuraava »

JF3000

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.

JF3000


Tyrsson

Have you installed any mods recently? Do you have the Ajaxchat mod installed?
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

No mods have been installed recently, the trouble only started when we went into 2010.

JF3000

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?

Tyrsson

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.
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

Here is the main index file for the forum.

Tyrsson

Please BACK UP the original file and try the one that is attached.
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

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

JF3000


Tyrsson

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.
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000


Tyrsson

Sorry was replying to several topics at the same time and thought I included the link.

Disable Temp Eval
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

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.

Tyrsson

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 ;)

PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

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.

JF3000

Whatever page I load I get the message (main_above sub template - eval?)

Tyrsson

Is this on the default theme or a custom theme?
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000


Tyrsson



For 1.x



Go into phpMyAdmin ( What is phpMyAdmin? ) 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';
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

Added sql and it says:


8: Undefined index: action
File: /home/domain/public_html/software/Themes/default/index.template.php
Line: 499

JF3000

Line 499 and 500:

if ($_POST["action"] == "affiliateadmin")
$context['current_action'] = $_POST["action"];

Tyrsson

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.
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

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.

Tyrsson

Try this file and see if your still getting the error.
PM at your own risk, some I answer, if they are interesting, some I ignore.

JF3000

Excellent that worked, what was the problem?

JF3000

There is a message that says: This patch file will update your forum to SMF 1.1.11., should I upgrade?

JF3000

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 ]



JF3000

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.

Kar.ma

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.
My SMF Forum: http://forum.associazioneelectron.org [nofollow]

Advertisement: