Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 09:38 am EST
Geeklog Forums
problem moving installation
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
Hi,
I've had to move one of my geeklog sites to a new server.
I'm getting some strange error's in the log files.
firstly, when I had the system dir's outside the http root I didn't seem to be able to include them - I'm sure this is an apache config *censored* up.
I've put my geeklog systems dir in the http root atm and I can at least include the config.php
When I access the site I see the following in the error logs:
PHP Warning: main(<httproot>/geeklog/plugins/Array/functions.inc): failed to open stream: No such file or directory in /<httproot>/lib-common.php on line 5998
PHP Fatal error: main(): Failed opening required '/<httproot>/geeklog/plugins/Array/functions.inc' (include_path='/<httproot>/geeklog/system/pear/:.:/usr/share/pear' in /<httproot>/lib-common.php on line 5998
I'm guessing that for some reason, something's not seeing the correct pear stuff.
The bit that's really confusing me is the failed openig <httproot>/geeklog/plugins/Array/functions.inc line. I don't have a plugins/Array directory, nor have I on any of my geeklog installations.
The system is running FC2 if it helps.
pear seems to be all there as fa as I can tell.
any one offer any advice ? - other than change OS.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
I've had to move one of my geeklog sites to a new server.
I'm getting some strange error's in the log files.
firstly, when I had the system dir's outside the http root I didn't seem to be able to include them - I'm sure this is an apache config *censored* up.
I've put my geeklog systems dir in the http root atm and I can at least include the config.php
When I access the site I see the following in the error logs:
PHP Warning: main(<httproot>/geeklog/plugins/Array/functions.inc): failed to open stream: No such file or directory in /<httproot>/lib-common.php on line 5998
PHP Fatal error: main(): Failed opening required '/<httproot>/geeklog/plugins/Array/functions.inc' (include_path='/<httproot>/geeklog/system/pear/:.:/usr/share/pear' in /<httproot>/lib-common.php on line 5998
I'm guessing that for some reason, something's not seeing the correct pear stuff.
The bit that's really confusing me is the failed openig <httproot>/geeklog/plugins/Array/functions.inc line. I don't have a plugins/Array directory, nor have I on any of my geeklog installations.
The system is running FC2 if it helps.
pear seems to be all there as fa as I can tell.
any one offer any advice ? - other than change OS.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
8
7
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
Why is it after posting something, you always find a related topic.
I followed the (what I think is a strange idea) of creating an Array/functions.inc shown here.
This seems to have cured the problem and the site now displays - don't know if it has caused any oddities yet.
This strikes me as a very odd problem. As I understand it, this functions.inc is being required by lib-common.php - pulled from $_PLUGINS. Which says to me that Array must be in $_PLUGINS - erm, but then it would be there on all my installations - I'll have a play with a php staticpage and see if I can find anything out.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
I followed the (what I think is a strange idea) of creating an Array/functions.inc shown here.
This seems to have cured the problem and the site now displays - don't know if it has caused any oddities yet.
This strikes me as a very odd problem. As I understand it, this functions.inc is being required by lib-common.php - pulled from $_PLUGINS. Which says to me that Array must be in $_PLUGINS - erm, but then it would be there on all my installations - I'll have a play with a php staticpage and see if I can find anything out.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
9
6
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
This is very odd indeed.
I'm assuming that $_PLUGINS is supposed to an array that holds a list of plugins installed.
I'm almost 100% certain that it's the foreach that's breaking, basically $pi_name is being loaded with an array - how/why if another question
Now to findout where $_PLUGINS is created.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
I'm assuming that $_PLUGINS is supposed to an array that holds a list of plugins installed.
I'm almost 100% certain that it's the foreach that's breaking, basically $pi_name is being loaded with an array - how/why if another question
Now to findout where $_PLUGINS is created.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
13
10
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
Getting somewhere now - slowly
It's not how $_PLUGINS is created. It's something weird with the foreach statement.
A foreach statement seems to create arrays (???).
Here's an exapmle of what I'm talking about.
$_PLUGINS=array('staticpages','spamx','easyfile';
foreach ( $_PLUGINS as $pi_name )
{
print $pi_name;
}
This will give me ArrayArrayArray
if you change the print to print_r($pi_name) you see why. This now gives me
Array ( [0] => staticpages [1] => 0 ) Array ( [0] => test [1] => 1 ) Array ( [0] => test1 [1] => 2 )
Notice the extra array element that's appeared - wtf when did foreach start doing shit like this.
My guess is that this is somekind of RedHat screw up. According to rpm-qa I'm running php-4.3.10-2.4
My normal version of 4.3.10 doesn't do this - so my guess is that RedHat have altered php somehow.
I don't have a permanent work around for this yet - I'm guessing that this problem wil break a hell of a lot of geeklog, and that I'll have a lot of replacements to do.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
It's not how $_PLUGINS is created. It's something weird with the foreach statement.
A foreach statement seems to create arrays (???).
Here's an exapmle of what I'm talking about.
$_PLUGINS=array('staticpages','spamx','easyfile';
foreach ( $_PLUGINS as $pi_name )
{
print $pi_name;
}
This will give me ArrayArrayArray
if you change the print to print_r($pi_name) you see why. This now gives me
Array ( [0] => staticpages [1] => 0 ) Array ( [0] => test [1] => 1 ) Array ( [0] => test1 [1] => 2 )
Notice the extra array element that's appeared - wtf when did foreach start doing shit like this.
My guess is that this is somekind of RedHat screw up. According to rpm-qa I'm running php-4.3.10-2.4
My normal version of 4.3.10 doesn't do this - so my guess is that RedHat have altered php somehow.
I don't have a permanent work around for this yet - I'm guessing that this problem wil break a hell of a lot of geeklog, and that I'll have a lot of replacements to do.
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
11
9
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
I've contacted one and one (where this server is) to check that upgrading zend optimizer isn't going to trash the plesk software.
I can't believe no one's pointed thsi out to them before - their base install has problems
UPDATE:
I don't seem to have ZendOptimizer installed. Perhaps I should just install it and see what happens
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
I can't believe no one's pointed thsi out to them before - their base install has problems
UPDATE:
I don't seem to have ZendOptimizer installed. Perhaps I should just install it and see what happens
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
9
10
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
CURED
My server didn't have Zend Optimizer installed, but it did have ioncube - I don't know what the relationship between the 2 are.
I installed Zend Otimizer and which added the following to the bottom of php.ini
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
My server now borked about ioncube needing to be loaded before Zend.
ioncube.ini was in php.d who contents are effectively appended to php.ini.
I added:
zend_extension=/usr/lib/php4/ioncube_loader_lin_4.3.so
directly after the [Zend] in php.ini and moved the ioncube.ini out of php.d
Restarted httpd and BINGO everything started and now appears to work perfectly.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
My server didn't have Zend Optimizer installed, but it did have ioncube - I don't know what the relationship between the 2 are.
I installed Zend Otimizer and which added the following to the bottom of php.ini
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
My server now borked about ioncube needing to be loaded before Zend.
ioncube.ini was in php.d who contents are effectively appended to php.ini.
I added:
zend_extension=/usr/lib/php4/ioncube_loader_lin_4.3.so
directly after the [Zend] in php.ini and moved the ioncube.ini out of php.d
Restarted httpd and BINGO everything started and now appears to work perfectly.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
10
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Thanks a lot, Jon, for solving that mystery.
I wrapped it in an FAQ entry: Unknown files or directories with "Array" in their name
bye, Dirk
I wrapped it in an FAQ entry: Unknown files or directories with "Array" in their name
bye, Dirk
11
13
Quote
All times are EST. The time is now 09:38 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content