TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 330
  • Total: 331
  • lurkalot

Error log - undefined constant forum_name

Started by NDFF, February 09, 2008, 11:54:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NDFF

If I run my forum with danish  as the Default Forum Language, then I get the following error in my error log, when guest do something they are not allowes to (as watching af members profile)

8: Use of undefined constant forum_name - assumed 'forum_name'
Fil: ../TPortal.danish-utf8.php (eval?)
Linie: 77

But when I change to english, as the Default Forum Language, I get none of these errors in my error log?

The forum blocks the act ok in both cases, but where is the forum_name constant defined and why is it only defined when I run with english as the default language?


IchBin

Where did you get Danish language files from for TP ? I didn't see any in the download section. Did you look at the line its telling you to?

G6Cad

Also in what theme is this ?
If the theme have it's own language file in the language folder, you need to translate that to.

The danish language pack must be your own work as i havent seen it eather here on this site.

NDFF

Well, the trick is to rename the tp*.english.php to tp*.danish.php. Then the forum can run the translated danish smf-files and the tp specifi files is then in english for the moment, but will be translated. Quick way to run your forum partly in a non-translated tp language.


But in the meantime I have found the error. Not in tp- even though the errorlog said it was there, but in login.danish.php. I took all the language files with forum_name in, renamed the english version to the danish version, so that the english and danish version was completely identical, except for the name. This was done one at a time, until the error disappered. Then I had the file with the errror.

Sorry for the disturbance in tp. Thought is was tp-related.

G6Cad

Great reading, must say that it's not everyday we see a member do this kind of investigation by them selfs :)
Thank YOU for posting this  :D

This website is proudly hosted on Crocweb Cloud Website Hosting.