Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: limo2005 - elokuu 30, 2006, 12:24:04 IP

Otsikko: Visual Warning for 1.1 RC3 - FATAL ERROR - HELP
Kirjoitti: limo2005 - elokuu 30, 2006, 12:24:04 IP
SMF Version: SMF 1.1 RC3
Im a bit stuck now!  I installed the package Visual Warning 1.29 for RC1.1 3 downloaded through Packages.

Allpied Mod (Sucesfully downloaded and all that) and now I  get the following error!  :-*

Fatal error: Cannot redeclare autowarn() (previously declared in /home/sites/MYSITE.co.uk/public_html/forum/Sources/Security.php:198) in /home/sites/MYSITE.co.uk/public_html/forum/Sources/Security.php on line 252

Please would someone help me remove this as I cannot get access to the forum.  Can I just remove the files using FTP?

Thank you for your help!

Mickey

Mickey
Otsikko: Re: Installed Visual Warning for 1.1 RC3 - FATAL ERROR - HELP
Kirjoitti: limo2005 - elokuu 30, 2006, 12:44:24 IP
RESOLVED -   Deleted the Code from line 198 upto the new code on line 252.

Did the trick but I am left with a Missing Icon.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg104.imageshack.us%2Fimg104%2F6046%2Fwarnxv0.png&hash=a3eebc00a787529f86ed169625c48e090e8f592b)

Any ideas what I should do to add "An image" where it should be?

Thanks in advance

Mickey

Otsikko: Re: Installed Visual Warning for 1.1 RC3 - FATAL ERROR - HELP
Kirjoitti: J. Williams - elokuu 30, 2006, 12:48:19 IP
Make an image, and call it warn.gif I would think; the theme also looks like it has problems :D
Otsikko: Re: Installed Visual Warning for 1.1 RC3 - FATAL ERROR - HELP
Kirjoitti: limo2005 - elokuu 30, 2006, 01:56:41 IP
Lainaus käyttäjältä: J J Williams - elokuu 30, 2006, 12:48:19 IP
Make an image, and call it warn.gif I would think; the theme also looks like it has problems :D

Thanks! I have an image called Warn.gif in Images where the other images are. Exactly what I thought! But somehow its not there!  No worries, I'll find it!  ::)

The theme is Ok as far as one can tell! But do you think so? If so? Where?

Cheers

Mickey
Otsikko: Re: Installed Visual Warning for 1.1 RC3 - FATAL ERROR - HELP
Kirjoitti: limo2005 - elokuu 31, 2006, 01:27:56 IP
Last night and this morning all was working fine http://nothappylq.co.uk (http://nothappylq.co.uk)!  Then I start to get this :

LainaaFatal error: Call to undefined function: autowarn() in /home/sites/nothappylq.co.uk/public_html/forum/index.php on line 164

when i click on FORUM!

Lainaa// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
   if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption', '.xml')))
   {
      // Log this user as online.
      writeLog();

      // Check if time to run visual warning update
      if ($modSettings['autoWarningTime'] < time())
         autoWarn(); <----------------------------------- LINE 164

      // Track forum statistics and hits...?
      if (!empty($modSettings['hitStats']))
         trackStats(array('hits' => '+'));
   }

   // Is the forum in maintenance mode? (doesn't apply to administrators.)
   if (!empty($maintenance) && !allowedTo('admin_forum'))

Any suggestions how I sort this out or where I would start?

Thanks for your time!

Mickey