Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Parse Errors While Installing Smf Board
detportal
post Dec 2 2006, 05:57 AM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 80
Joined: 26-November 06
Member No.: 34,068



I seem to be getting a LOT of parse errors with my php scripts. there are two things they have in common:
1. they are downloaded and uploaded without modifying them.
2. they all seem to have "unexpected $end"
e.g
QUOTE
Parse error: syntax error, unexpected $end in /home/random1/public_html/hsp/forum/webinstall.php on line 271

that example for webinstall.php, a script used to install SMF. I know that trap17 provides fantastico to install SMF, but I want to install SMF1.1RC3 to use with joomla-smf, which fantastico doesn't support.
if I upload and install SMF the old fashioned way, I get a similar message. I do not modify my php scripts before uploading. If other people can use them fine, why can't I?
Does it have something to do with an old version of php on the trap17 servers?
Thanks in advance for any help!

Notice from BuffaloHELP:
Topic title should be descriptive to the topic point and all copied words in QUOTE tag.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Dec 2 2006, 11:24 AM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,492
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I am running SMF 1.1 RC3. And it was upgraded from 1.0 version. Both install and upgrade were done over FTP upload (bypassing Fantastico!). And they work just fine.

I have added few mods for the board so they too are working just fine.

Before we go any further, how are you uploading to your hosting space? Have you unzip the whole thing in your local harddrive and uploading one by one style file upload? Or are you uploading the whole zip file and letting cPanel to unzip it? Which FTP software, if any, are you using and have you set "auto detection" for file types? -- this is because some SMF files need to be uploaded in BINARY mode and some in ASCII mode.
Go to the top of the page
 
+Quote Post
detportal
post Dec 3 2006, 09:18 AM
Post #3


Member [Level 2]
*****

Group: Members
Posts: 80
Joined: 26-November 06
Member No.: 34,068



thanks for your help, BuffaloHELP, i read the FAQ on trap17 and saw that you didn't exactly support hosting of .zip files so I thought that cPanel would not let me unzip files. how wrong I was. and it wasn't just SMF board that I was getting parse errors on. I dropped the drupal part of my site cos i kept getting these parse errors. it seems as though the parse errors came from my FTP client, FireFTP (a firefox extension). I uploaded them as .zip and let cPanel unzip them and it worked just fine.

As a question, how would uploading a file in different modes affect the contents of a file? Don't the contents of files stay the same no matter how it gets sent to the server?

This post has been edited by detportal: Dec 3 2006, 09:19 AM
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Dec 3 2006, 09:56 AM
Post #4


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,492
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Some FTP programs are better than others when distinguishing from binary mode and ASCII mode. Since I am not using FireFTP I am going to make the following conclusion.

The actual software client, such as WsPro, SmartFTP, CuteFTP, FireZilla are designed to either automatically detect the file type or force to certain transfer mode.

But as far as I can tell, FireFTP lacks this capability and it forces to be in ASCII mode at all times. This is bad when it reads "\n" or a blank return as "end of line" which then "re-writes" as "END", the very same error you received.

In Binary mode, it transfers character by character. This method takes longer when uploading but since it is in Binary mode (zeros and ones) it does not "re-write" anything other than the original character.

When you visit some script support forum, they actually tell you which files to upload in Binary mode and which files in ASCII mode. This is also known as UTF-8 mode (auto, force, never).

Regarding not hosting ZIP files pertains to illegal files, such as cracks and keygens, MP3, unlicensed software, expletive materials and pictures. SMF is free license thus you can upload it as ZIP and use cPanel to extract.

For more information and discussion on cPanel ZIP and UNZIP, please look through our Tutorial section.

Topic resolved and closed.

Since this topic also deals with FireFTP (which I think it stinks! tongue.gif) if you would like to continue this topic please PM a moderator.
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Help With Forums(9)
  2. Installing Apache, Mysql, Phpmyadmin Locally(5)
  3. Frontpage(0)
  4. Problems Installing Ipb 2.1.5(2)
  5. Why Is Php All Of A Sudden Spitting Errors At Me?(7)
  6. [solved]dsn Help (errors)(3)
  7. Sites Disapeard, Mysql Errors? Also Server Folders Deleted(18)
  8. Security Check Php Register_globals(7)
  9. Errors With Php Setcookie() And Headers! Please Help!(2)
  10. Help Installing Phpbb On My Site [resolved](6)
  11. Database Errors!(5)
  12. Two Errors I Get.(1)
  13. Installing Phpbb(0)
  14. Having Trouble Installing Smf(3)
  15. Need Help Installing Smf(5)
  1. Installing Phpbb Forum On My Site?(5)
  2. Installing The Simple User System.(6)
  3. Installing Easymod(3)
  4. Installing Ipb(1)
  5. Having Problems With Installing Ipb 2.3.x(2)
  6. Installing Joomla And Shell Question(0)
  7. Installing Ffmpeg(7)
  8. Installing Theme On Smf Forum(4)
  9. Successfully Installing Joomla [resolved](2)
  10. Parse Error: Syntax Error, Unexpected '<' On Line 29(11)
  11. Installing Custom Fonts...(5)
  12. Is The Database System Gone Again? [resolved](12)
  13. Movable Type 4(0)


 



- Lo-Fi Version Time is now: 12th October 2008 - 06:41 PM