News:

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

Main Menu

Code error at step 5 of install

Started by HalRau, December 22, 2014, 08:05:38 AM

Previous topic - Next topic

HalRau

I have done a new install of the forum.
At this address SMForum/install.php?step=5 I am getting this error message.
Parse error: syntax error, unexpected ',' in \SMForum\Sources\Subs.php on line 898

Any ideas?

Kindred

well, what is line 898 of your subs.php?
What version of SMF did you attempt to install?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

HalRau

Downloaded the latest version from http://www.simplemachines.org/ "Download SNF" Install.php gives version as  2.0.9
Line 898 reads    if (WIRELESS)

Kindred

hmmm....  sounds like your file may be corrupted   Who is your host?
Try uploading a clean ste of files and re-doing the install?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

HalRau

As suggested I did a new install in a new folder.
The host is GoDaddy

Now I get this error. Parse error: syntax error, unexpected T_ELSEIF in ....\SNF\Sources\Subs-Package.php on line 945 which is          @chmod($file, 0755);
This line is part of a block of code.
      // This looks odd, but it's an attempt to work around PHP suExec.
         if (!file_exists($file))
         {
            mktree(dirname($file), 0755);
            @touch($file);
            @chmod($file, 0755);
         }

         if (!@is_writable($file))
            @chmod($file, 0777);
         if (!@is_writable(dirname($file)))
            @chmod(dirname($file), 0777);

         if (@is_writable($file))
            unset($files[$k]);
      }

      return $files;
   }
   elseif (isset($_SESSION['pack_ftp']))
   {

When I go to the main index.php the forum comes up and  seems to be working.

Kindred

so - that code has been used thousands of times, without error...   the nly assumption I can make is that something is breaking the files that you upload.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Please attach your Subs-Package.php file.


Arantor

Curious, that's the same file as a stock 2.0.9 comes with - I don't see how it's possible to get that error with that file.

Advertisement: