Beta2 broken, broke all my plugins

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
electroteque
Regular
Posts: 58
Joined: Tue Jan 17, 2006 2:13 am

Beta2 broken, broke all my plugins

Post by electroteque »

Hi there i installed beta2 and it seems to have broken all my plugins, im going back into install them again , however i just got another error installing the flickr plugin

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /Volumes/FIREWIRE/www/dev/weblog/bundled-libs/PEAR.php:744) in /Volumes/FIREWIRE/www/classes/PEAR/PEAR.php on line 790

Ive said this before, can we have a setting to where our pear directory is, this bundled pear library is giving me the shits.
electroteque
Regular
Posts: 58
Joined: Tue Jan 17, 2006 2:13 am

Post by electroteque »

now the admin is broken and wont list the plugins properly

Warning: serendipity_plugin_flickr::require_once(Flickr/API.php) [function.require-once]: failed to open stream: No such file or directory in /Volumes/FIREWIRE/www/dev/weblog/plugins/serendipity_plugin_flickr/serendipity_plugin_flickr.php on line 141

Fatal error: serendipity_plugin_flickr::require_once() [function.require]: Failed opening required 'Flickr/API.php'serendipity_plugin_flickr.php on line 141


this system is becoming famous for being broken, i thought i moved away from this from wordpress which was extremely buggy, come on !
electroteque
Regular
Posts: 58
Joined: Tue Jan 17, 2006 2:13 am

Post by electroteque »

It looks like when I copied the files over it overwrote the plugins directory, it seems it is only distributed with a few plugins not even the xmlrpc is there.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I'm really sorry you face those problems. But if you search the forums, the only one having those problems is you ;)

The problem really seems to be that you are including PEAR files independ of Serendipity. That is usually a problematic thing to do. You either need to use the Serendipity PEAR bundled directory and not including any PEAR files via your include_path before serendipity. Or you need to install all required PEAR plugins for serendipity and set the $serendipity['use_PEAR'] = true variable.

Somehow the include_path setting of your host does not check all the directories that contain s9y files, and the FLICKR api must be installed somewher in that path, as describe din the readme.txt file of the plugin...

So, I'm really sorry for your problems, but I'm not able to reproduce them here on my setup, which also has a local PEAR repository...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
electroteque
Regular
Posts: 58
Joined: Tue Jan 17, 2006 2:13 am

Post by electroteque »

I havent set any pear setting other than your general average default include path in php.ini which is pointing to my pear directory ? So this setting will force all plugins to use the non bundled pear classes ? Where do I set this ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You can set that $serendipity['use_PEAR'] setting either in your serendipity_config_local.inc.php (advised) or modify the serendipity_config.inc.php.

Could you tell me what your include_path looks like for the serendipity directory? For that you could go to the end of serendipity_config.inc.php and insert:

Code: Select all

die(ini_get('include_path'));
to see that setting. Whatever the reason, files of your global PEAR repository are included before Serendipity's...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply