Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Some sort of error


Recommended Posts

Please, help me with this.


I've put in everything into my server and when I go into the install folder; first thing I get is this.


Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /hsphere/local/home/[i]hided[/i]/oscommerce/admin/includes/classes/language.php on line 20


Do anyone know what this means?

Link to comment
Share on other sites

Are you trying to install osc v3.0? I believe that requires php5. The most common cause of this error appears to be using php4 where php5 is required.


If you are trying to install osc v3, please note that your message is posted in the 2.x forum. Also note that osc3 is only a development version and not ready for production use, if you are not already aware of this.

www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used!

Link to comment
Share on other sites

/admin/includes/classes/language.php lines 20-25 look like this on stock osC 2.2rc2a


      $this->languages = array('ar' => 'ar([-_][[:alpha:]]{2})?|arabic',
                              'bg' => 'bg|bulgarian',
                              'br' => 'pt[-_]br|brazilian portuguese',
                              'ca' => 'ca|catalan',
                              'cs' => 'cs|czech',
                              'da' => 'da|danish',

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites

/admin/includes/classes/language.php lines 20-25 look like this on stock osC 2.2rc2a

I think Ben is right. See for example this topic.


The use of public and private in front of function like in osC 3 oscommerce/admin/includes/language.php (line 20):


    public function loadIniFile($filename = null, $comment = '#', $language_code = null) {

will cause that error when using PHP4.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...