Topic: Possible Bug

hello i see this in my "Install extension"

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /web/htdocs/www.mysite.com/home/admin/extensions.php(742) : eval()'d code on line 62

Re: Possible Bug

did you solve it?

what extensions (and versions) do you have installed?
try to disable them one by one. which one was the reason?

Carpe diem

Re: Possible Bug

It's obviously the same error as here: http://punbb.informer.com/forums/topic/ … tall-page/

Re: Possible Bug

Anatoly wrote:

did you solve it?

what extensions (and versions) do you have installed?
try to disable them one by one. which one was the reason?

yes i have try few extension maybe the problem is it

Re: Possible Bug

not resolve, maybe it's a php 4 problem?

Re: Possible Bug

Yes, this error appears in PHP 4. But you can fix it. I've written how to do it in the topic: http://punbb.informer.com/forums/topic/ … all-page/.

7

Re: Possible Bug

parpalak wrote:

You can fix this (http://punbb.informer.com/trac/changeset/299) or download 'pun_repository/manifest.xml' from SVN (http://punbb.informer.com/svn/extension … nifest.xml).

Update: Don't forget to reinstall pun_repository after changing manifest.xml.

With fix do not function

Re: Possible Bug

yes i know that in my host work the php 4 but fix no cure it.

Re: Possible Bug

any idea?

Re: Possible Bug

There is another foreach() in manifest.xml (line 125) that works only on PHP 5:

foreach ($pun_repository_ext['dependencies']['dependency'] as &$pun_repository_ext_dep)

This is definitely a bug. The makeshift solution is to remove '&' symbol from this line.

Re: Possible Bug

Thanks for reports.
I'll check out pun_repository and update it in extensions repository soon.

Carpe diem

Re: Possible Bug

parpalak wrote:

There is another foreach() in manifest.xml (line 125) that works only on PHP 5:

foreach ($pun_repository_ext['dependencies']['dependency'] as &$pun_repository_ext_dep)

This is definitely a bug. The makeshift solution is to remove '&' symbol from this line.



ok work fine!

13

Re: Possible Bug

Thanks it's ok