| Topic: | need help 0.762 - Fatal error: ... in pnAPI.php ... |
|---|---|
|
mortimar
Registered User
Posts: 1 Posted: |
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 |
|
Simon
online Steering Committee
Posts: 13427 Posted: |
Delete the whole PostNuke distribution and reupload it, and try again. -- Regards, Simon itbegins.co.uk - Zikula Consulting Please read the Support Guide |
|
Rogier
Registered User
Posts: 1 Posted: |
HammerHeadDelete 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. :) |
|
Simon
online Steering Committee
Posts: 13427 Posted: |
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 |
|
GrefTek
Registered User
Posts: 1 Posted: |
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 |