Uutiset:

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

Main Menu
Advertisement:

Issue with the log error table

Aloittaja dillon, kesäkuu 02, 2011, 06:35:24 IP

« edellinen - seuraava »

dillon

My error table keeps getting this error.
The main issue is with the 'contact'  as described in this error. Every time someone hits the theme it tosses up the error.

Error:
8: Use of undefined constant contact - assumed 'contact'<br />File: /home4/miltonmi/public_html/miltonmoms/SMFMil/Themes/dilbermc/index.template.php<br />Line: 1351

eval has been turned off and I am running on 1.1.13.

mashby

Mind providing a list of installed mods and more importantly the 10 lines above and below line 1351 in that file?
Always be a little kinder than necessary.
- James M. Barrie

dillon

Here is the file.
Thank you for your help.

mashby

OK, this is indeed line 1351:
<a href="http://www.miltonmoms.net/contactforum/">' , $txt[contact] , '</a>
Does that happen on any theme, or is this Contact button only available on the Dilber MC theme? What mod is making that button or was it manually inserted? In any case, in Themes/default/languages/index.english.php you can simply add a line to that to make it a valid string, something like this:
$txt['contact'] = 'Contact Us';You can, of course, make Contact Us however you want the string to appear. Insert that at the end above ?> or somewhere as a new line in that file. I think that will help, but not entirely sure. It's worth a shot anyway. Just odd that Contact Us is already appearing on your site though.
Always be a little kinder than necessary.
- James M. Barrie

dillon

The errors are still present:
8: Use of undefined constant contact - assumed 'contact'<br />File: /home4/miltonmi/public_html/miltonmoms/SMFMil/Themes/dilbermc/index.template.php<br />Line: 1351

The code was placed in the file path that was suggested. I have attached the file. The code was placed at line 707 Please let them know that code is already on line 15.

mashby

Ah, I see now what's up! Try the attached.
Line 15 was:
$txt[contact] = 'Contact Us';

And is now:
$txt['contact'] = 'Contact Us';
I also removed line 707.
Those ' characters are important. :)
Always be a little kinder than necessary.
- James M. Barrie

dillon

It is still creating errors, I have attached the altered file.


Arantor

<a href="http://www.miltonmoms.net/contactforum/">' , $txt['contact'] , '</a>

Note the added ' s
Holder of controversial views, all of which my own.


dillon

Thank you so much for your help.
The error is fixed using the last post as guidance.   However there is another error that is being caused whenever someone looks at a post.

This is the error:
8: Undefined variable: spamclause<br />File: /home4/miltonmi/public_html/miltonmoms/SMFMil/Sources/Display.php<br />Line: 745

Attached is the file.

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: