News:

Wondering if this will always be free?  See why free is better.

Main Menu

Unable to load Themes/default/index.template.php!

Started by Aaron H, September 14, 2009, 01:07:27 AM

Previous topic - Next topic

Aaron H

I have looked at your other posts on this subject, i cant seem to fix this error which has occured

Unable to load Themes/default/index.template.php!

Im using the latest versions which were installed just yesterday the link is http://gamingvortexforums.co.uk/ [nofollow]

Yigal

Have you installed any modifications?  If so...which?  Do you have any backups to your forum?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Norv

If you installed a mod, you can take a look in your forum's ./Packages/backups, you will find there zipped backups of your SMF core files before installation of any mod. Take the latest, download it on your computer, unzip and get index.template.php from it, to use it instead. (from Themes/default)
Make sure you do keep a copy of the current index.template.php, just in case.

Alternatively, please consider attaching here your current index.template.php.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Norv

I see nothing wrong with the file at first sight, I can even use it successfully on a test installation.

What else happened meanwhile, did you by any chance change paths on the server? Or, can you please tell where, on what path exactly was this index.template.php file?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Yigal

Try the "repair_settings.php" tool to check if all of your paths are correct.  What is repair_settings.php?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Aaron H


Norv

About repair_settings.php: Were all your paths correct? Did the paths to the default Theme point indeed to your folder?
Please note that running the file doesn't do anything by itself, but it shows you a list of paths and settings for you to correct.
Then, save them. It may be useful to save even if you didn't need to change anything.

Also:
Quote from: Norv on September 14, 2009, 07:24:12 PM
What else happened meanwhile, did you by any chance change paths on the server? Or, can you please tell where, on what path exactly was this index.template.php file?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Aaron H

I have, i checked the directory it was one of the first things to which i did

Norv

Please log in phpMyAdmin, select your forum's database on the left, and select the SQL tab on the right window. Run this SQL code:

SELECT url, message, error_type, file, line FROM smf_log_errors ORDER BY log_time DESC LIMIT 50

and paste the result here.
( What is phpMyAdmin? )
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Aaron H

SQL query: Documentation

SELECT url, message, error_type,
FILE , line
FROM smf_log_errors
ORDER BY log_time DESC
LIMIT 50

MySQL said: Documentation
#1146 - Table 'gamingvf_ff.smf_log_errors' doesn't exist

Norv

Please, use your database prefix in the place of "smf_".
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Aaron H


mortymoose

Thanks Norv, had a similar problem..... Aha... the power of backups.....

thanks

Norv

Aaron H: The name of the table in your database, is not "smf_log_errors", it seems to be something else. As you look at the table names in that database, what do they start with? That is the database prefix, that you have set at installation time for SMF. Like, what is the first table named?

mortymoose: ohyes! *goes make another just to be sure*.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Norv

Please look in phpMyAdmin, after you select the database, at the table names, that appear on the left, under the database name. What are these table names, give an example or two.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Norv

"jghf_" is your database prefix, that is, the prefix of all tables names in your database. Thus, please run the query this way:

SELECT url, message, error_type, file, line FROMgamingvf_ff.jghf_log_errors ORDER BY log_time DESC LIMIT 50

and copy paste (or screenshot) the result here.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Aaron H

Error

SQL query: Documentation

SELECT url, message, error_type,
FILE , line FROMgamingvf_ff.jghf_log_errors
ORDER BY log_time DESC
LIMIT 50

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.jghf_log_errors ORDER BY log_time DESC LIMIT 50' at line 1

Norv

Oh, sorry, there's a space missing. Please use:

SELECT url, message, error_type, file, line FROM gamingvf_ff.jghf_log_errors ORDER BY log_time DESC LIMIT 50
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Norv

Ah, well, thank you, I'm afraid it doesn't help much unfortunately.
Unexpected though, that http://gamingvortexforums.co.ukhttp://ya.ru...

It may be better to completely refresh your SMF files. Please consider to follow these steps:
backup all your current SMF folder to another location (your computer, or another), then delete all SMF files from the server, except Settings.php and Settings.bak.php.
Download a large upgrade package for SMF the same version as yours, unzip and upload the files in the SMF folder, as it was before, without upgrade.php.
Then, please upload back from the backed up files the contents of the ./attachments directory, perhaps ./avatars as well.

This way, you will not lose anything, and your site should be back.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: