News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

2.0 RC4 - Problem with Language

Started by DutchJam, November 15, 2010, 04:24:32 PM

Previous topic - Next topic

DutchJam

Hi,

I upgraded from 2.0 RC2 tot 2.0 RC4.

Few template problems, but not really serious so far.

But the language section is. When I want to go to the 'Language' in the admin I get this error message:

Fatal error: Cannot redeclare template_init() (previously declared in /home/jamaifrm/public_html/Sources/Load.php(2156) : eval()'d code:32) in /home/jamaifrm/public_html/Themes/default/languages/index.template.php on line 66

Most of the forum is in Dutch, but parts of the help section are in English (between Dutch sections).

Anyone suggestions?

Tnx!
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

Joker™

As error is saying redeclare, it indicates that there is some duplicate code that you need to remove.  Look for "template_init()" in the indicated file.  It's possible that you may need to disable the template eval so the file that is causing the error is indicated.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

DutchJam

Hi Joker,

Tnx for your reply.

It's weird: when I look for the file .../public_html/Themes/default/languages/index.template.php I can't find it on that location.

I did not delete any files in this folder.

How come?
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

Joker™

Attach this file here

Sources\Load.php
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

DutchJam

Sorry, don't understand.

There's no "template_init()" in sources/load.php
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

Joker™

Have you made any recent modifications and what mods do you have installed.

Also try this and give us feedback
Quote from: Joker™ on November 15, 2010, 04:47:55 PM
It's possible that you may need to disable the template eval so the file that is causing the error is indicated.
Settings can be found at:

Administration Center » Server Settings » General -- Disable evaluation of templates
After that post the error here.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Dragooon

Why do you got a index.template.php inside a languages folder? The code is evaluated, meaning it doesn't exist in Load.php, Load.php is merely evaluating the template. Since you upgraded from RC2 to RC4, make sure ALL the files are properly overwritten.

DutchJam

I installed Aeva Media, AjaxChat Integration and SimpleAd

When I disable the template evaluation as you suggested I get the same error message as mentioned above when I want to go to the language section in the Admin menu. Or should I look elsewhere for the error message?

The error occurred after the upgrade from RC2 to RC4.

No, I don't have an index.template.php in my languages folder. I never did anything in that folder, except installing the Dutch language files after the upgrade.
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

Dragooon

I never said to disable template evaluation, just overwrite every files(Re-perform the upgrade) and re-do the modifications. Mostly it seems you performed the installation actions of a mod twice.

DutchJam

Quote from: Dragooon on November 19, 2010, 09:32:55 AM
I never said to disable template evaluation, just overwrite every files(Re-perform the upgrade) and re-do the modifications. Mostly it seems you performed the installation actions of a mod twice.
No other way to find out what going on?

I also found this message in the error log:

...jamaicaforum.nl/index.php?action=dlattach;attach=127;type=avatar
8: Undefined index: default_theme_url
File: /home/jamaifrm/public_html/Sources/Load.php
Line: 1936


More same messages like this also are in the log, but with different line numbers (line 1937, 1924, 1925, 1815 and more).

Could this something to do with the help-file language problem?
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

CapadY

DutchJam, please open your own topic for your own problem with the needed information about your own forum.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

DutchJam

Capady,

This IS my own topic  ;)

I left the problem for a while, but it still is there...
-----
JamaicaForum.nl: http://www.jamaicaforum.nl

CapadY

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Joker™

Have you made a upgrade again as suggested by Dragooon,If not I would also suggest you to grab a large upgrade pack and upgrade your forum again.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: