Author Topic: Parse Error on fresh install.  (Read 2581 times)

Offline immaturity

Parse Error on fresh install.
« on: October 11, 2007, 01:21:19 pm »
For whatever reason SMF 1.1.4 doesn't let me install anything using the package manager, so I have been installing mods manually using instructions from http://modparser.dev.dansoftaustralia.net/index.php

For SMFShop, I followed all directions and uploaded all files it said.
When I tried to run installScript.php I got a parse error. I uploaded all of my backups before I remembered to copy the parse error, so I am going by memory on it...

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /.../Sources/Subs.php on line 891

I think somewhere in there it said the problem was "expected ')' "
but there is no line 891 in Subs.php, there's only 300-something lines.

HELP!

Offline immaturity

Re: Parse Error on fresh install.
« Reply #1 on: October 12, 2007, 01:52:55 am »
tried it again, here is the exact error:
Code: [Select]
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/immaturi/forum.parentalplayground.com/Sources/Subs.php on line 891

I also found line 891, this is it (well, this is lines 889-892)
Code: [Select]
function un_htmlspecialchars($string)
{
return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES)) + array(''' => '\'', ' ' => ' '));
}
« Last Edit: October 12, 2007, 01:59:22 am by immaturity »

Offline immaturity

Re: Parse Error on fresh install.
« Reply #2 on: February 09, 2008, 11:37:06 am »
bump

Offline Daniel15

Re: Parse Error on fresh install.
« Reply #3 on: February 15, 2008, 07:05:37 am »
Hmmm...
Could you please attach your entire Subs.php file here?

Offline immaturity

Re: Parse Error on fresh install.
« Reply #4 on: February 23, 2008, 10:57:54 am »
I will, thanks. I'm trying to uninstall a different mod right now, but your modsparser seems to be not working correctly at the moment (I am lost without it, thank you for creating it). But I am trying to uninstall a different mod, then I will be trying this one again and will post the entire subs.php then.