Parse Error

General discussion about netjukebox
Post Reply
xorphan
User
Posts: 3
Joined: Mon Jan 09, 2006 3:56 pm

Parse Error

Post by xorphan »

installation whent perfect - database creation was a breeze and automated

but in the online configuration utility after i log in

and go to update i get the error below


Parse error: parse error, unexpected '}' in E:\Web Root\Web Root\Forums\phpBB2\netjukebox\update.php on line 307
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

netjukebox 3.77 is more than one moth old, and I haven't heart from a similar problem.
Do you have changed something in the update.php file?
xorphan
User
Posts: 3
Joined: Mon Jan 09, 2006 3:56 pm

nothing at all

Post by xorphan »

i haven't changed anything in the update file...

i know the issue seems weired
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Do you use Apache, IIS or another web server?
What version of PHP do you use?
xorphan
User
Posts: 3
Joined: Mon Jan 09, 2006 3:56 pm

Post by xorphan »

i use wamp server 1.6.0 for windows xp

http://www.wampserver.com/en/index.php

Apache 2.0.55
Mysql 5.0.17
PHP 5.1.1

i wasn't able to copy those two files the lib & dll one because i have version 5 so i downloaded both version 4 files...

and put them in the folder i also put version 5 files in the folder just in case

the folder i'm refering to is system32
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

I can reproduce the error with wampserver.
I will take a look at it later.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

After removing wamp and manually installing PHP 5.1.1 & Apache 2.0.55 the parse error is gone.
Does someone have a clue what cause previous parse error :? :?:
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

If you like an all in one package consider XAMP.
http://www.apachefriends.org/en/index.html

The current version contains:
Apache 2.2.0
MySQL 5.0.18
PHP 5.1.1
phpMyAdmin 2.7.0-pl1

netjukebox works without any problem on XAMP for windows.
A half year ago I also have successfully tested netjukebox on XAMP for Linux.

Maybe it is easier to switch from WAMP to XAMP than get WAMP working correctly :wink:
Shostakovits
User
Posts: 2
Joined: Fri Jan 13, 2006 1:27 pm

Post by Shostakovits »

Parse error: parse error, unexpected '}' in E:\Web Root\Web Root\Forums\phpBB2\netjukebox\update.php on line 307
When I remove the '}' @ line 307, the error is gone. Don't know if f****d the program by doing this, but it *works*! (for me).

I don't have any knowledge of PHP4/5, but 'unexpected' in my view, means it shouldn't be there.

I'm Using:

- Windows Server 2003 Standard

- Apache2.0.55
- PHP5.1.2 + PECL pack
- Mysql5.0.18-nt


Any comments are welcome! enlighten me :P
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

I found the solution :D

You only get this error when you have disabled short tags in the php.ini (short_open_tag = Off)
I have forgotten to open a php tag with <?php and have used <? on one place.
You can fix the problem by editing line 221 in the update.php file:

old:

Code: Select all

<?
new:

Code: Select all

<?php
Let me know if this will fix the problem.
If so I will release a bugfix (netjukebox 3.77c)
Shostakovits
User
Posts: 2
Joined: Fri Jan 13, 2006 1:27 pm

Post by Shostakovits »

Works like a charm here :)

I disabled the "Short_open_tag", and there was the error again.
Edited line 221, and 'voila', no error. *Works*!
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Shostakovits wrote:Works like a charm here :)

I disabled the "Short_open_tag", and there was the error again.
Edited line 221, and 'voila', no error. *Works*!
Thanks,

I haven't found simular problems :wink:
So I will release netjukebox 3.77c very soon.
Plan-1130
User
Posts: 2
Joined: Tue Jan 31, 2006 10:24 pm
Location: Enschede, the Netherlands

Post by Plan-1130 »

xorphan wrote:i use wamp server 1.6.0 for windows xp

http://www.wampserver.com/en/index.php

Apache 2.0.55
Mysql 5.0.17
PHP 5.1.1

i wasn't able to copy those two files the lib & dll one because i have version 5 so i downloaded both version 4 files...

and put them in the folder i also put version 5 files in the folder just in case

the folder i'm refering to is system32
Those files are already installed, all you have to do is open php.ini and change:

;extension=php_gd2.dll
into
extension=php_gd2.dll

and

;extension=php_pdf.dll
into
extension=php_pdf.dll


that's all :)
Post Reply