- Moderated by:
- Support
-
- rank:
-
Registered User
- registered:
- August 2006
- Status:
- offline
- last visit:
- 17.08.06
- Posts:
- 1
Fatal error: Cannot redeclare class in /var/www/htdocs/pn/html/includes/pnAPI.php on line 1181
During the installation of PostNuke I got the previous error code.
Until the settings for the admin-account all works fine but if I confirm the settings of admin-account the following output was displayed:
Uploaded Data
pn_headlines updated.
pn_module_vars updated.
pn_users updated.
pn_groups updated.
pn_modules updated.
pn_user_property updated.
pn_admin_category updated.
pn_admin_modules updated.
pn_users updated.
pn_group_membership updated.
Fatal error: Cannot redeclare class in /var/www/htdocs/pn/html/includes/pnAPI.php on line 1181
my system: LAMP(Apache2, MySQL 5.0.22, PHP5)
thanx all
ciao mort -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- online
- Posts:
- 13418
Delete the whole PostNuke distribution and reupload it, and try again.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Registered User
- registered:
- October 2006
- Status:
- offline
- last visit:
- 17.10.06
- Posts:
- 1
HammerHead
Delete the whole PostNuke distribution and reupload it, and try again.
I've had the -exact- same problem in 0.763 and reinstalling did -not- help. I am helping a customer install this software on her web account for the first time (since she was having trouble installing it) and right off the bat got this error message.
The package used was PostNuke-0.763.tar.gz, md5sum b34fda00d9cf8911ac2133760ff7de49 (the same as stated for the stable release), Running PHP 5.1.6, mySQL 5.0.24.
This problem smelled a bit like a include/require that should have been a include_once/require_once, so I opened the pnAPI file, changed the include I found at at line 1207 into an include_once and restarted the process just before installing the database. It worked like a charm.
Personally I think it is sad that noone took mortimar's problem serious enough to find this issue. If it was, the current stable wouldn't have the problem.
I'll drop this in bug report and hope it'll be fixed in the next stable. :) -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- online
- Posts:
- 13418
It's a problem with register_globals - the pnInit function should remove any globals that are set to avoid problems like this however the implementation is problematic in .763. Turn off register_globals and all should be fine.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Registered User
- registered:
- November 2002
- Status:
- offline
- last visit:
- 24.10.06
- Posts:
- 1
register_globals is off and in fact, never has been enabled on this setup when I encountered this problem. register_globals is turned off on all my set-ups because in general it promotes lazy coding and a lot of risk for the unwary. ;)
Anyway, for me it's safe to say that even if it is good to disable register_globals it does not seem to solve the problem or at least not completely.
edited by: GrefTek, Oct 24, 2006 - 11:23 PM
