Recent Topics

1 Dec 07, 2005 19:01    

Hello there...

I am trying to install the new b2blog. When I want to call the install/index.php I get the following error message:

Parse error: parse error, unexpected $ in /home/www/web92/html/blogs/evocore/_misc.funcs.php on line 860

What could this be and how can I solve this problem?

There are no install action at all...

Thanks a lot for your help :-)

Vicky

2 Dec 07, 2005 23:02

An error like that suggests that you didn't get all of the files uploaded correctly. Maybe you lost your ftp connection or missed a file or something. I would re-upload everything and try again.

3 Dec 07, 2005 23:34

If it still fails after uploading, please send me your _misc.funcs.php file.

But personman is probably right.

4 Dec 08, 2005 08:52

Hello and thanks for your answer,

Erm... I´m afraid this is not the problem. I uploaded the files again this morning an it still gives me the same error message.

I´ll try the installation on a different server now. On that server is b2evo the dawn version installed and it works fine.

-------------------------------------------------------------------------------------

The new installation of the Phoenix alpha did not work on the different server as well. I get the same error message...

Thanks,

Vicky :-)

5 Dec 08, 2005 09:18

Hi Vicky06. I wonder: did you get a fresh copy of the zip file and start from there, or did you re-upload the same zip (or files from the same zip) that you used before? My point is that if you happen to have a corrupted file it might be from downloading the zip, or unzipping the zip, or uploading the zip or files to your server, and finally possibly unzipping on your server. By going way back to the beginning of time you can rule out all possibilities all at once.

6 Dec 08, 2005 09:30

I downloaded a fresh zip file... the one I tried yesterday was a one downloaded just before uploading. I always get a fresh zip file for the case of bugfixes in a new file...

Thanks :-)

Vicky

7 Dec 11, 2005 16:40

Problem solved!!! In Line 860 it says:

$newtext =
        str_replace(
          "< !--",
          "<!--",
          $newtext
        );

In the Line

"<!--",

there must be a space between the "<" and the "!"

That was the problem.

Thanks to Blueyed for your help :-)

I installed B2 now and it works fine as usual.

Vicky

8 Dec 11, 2005 20:08

That would make the line pointless.

It's a strange PHP parser bug, IMHO.

Please try:

$newtext = str_replace( '< !--', '<!--', $newtext );


instead. (Single quotes instead of double quotes).

You don't need to re-install, just access/reload the site.

If that still causes a parse error, try:

$newtext = str_replace( '< !--', '<'.'!--', $newtext );

9 Dec 11, 2005 20:13

That would make the line pointless.

Yep... thats true... but it worked so far.

Anyway... I tried the 2nd line now

$newtext = str_replace( '< !--', '<'.'!--', $newtext );

This line also works fine now...

So much stress because of a space *ggg*

Thanks very much for your help :-)

Vicky

10 Dec 11, 2005 20:16

Thanks for your help.

As you've said in your email, single quotes alone did not do the trick.

Strange, I'll change it in the code.


Form is loading...