500 internal server error on most pages.

Our site has developed a problem I never saw before.
Our installation is SPIP 1.9.2 [8782]

In the public area, some of the rubriques (e.g. )are available, but most rubriques (e.g. ) and all articles are not available, with a 500 Internal Server Error.

The site has been working well for several months on the present hosting. After contacting support, they say the script is segmentation faulting (their message follows).

I checked the file permissions, and all the directories for the spip directories and subdirectories
/tmp /ecrire /oo /IMG /dist /config /local
and they are 755, with files in them at 644.

The private area is working fine. Any ideas?

Message from hosting company support:
Your script is segmentation faulting :

[root@gator303 /home/nswas/public_html]# sudo -u nswas php spip.php
Segmentation fault (core dumped)

[root@gator303 /home/nswas/public_html]# sudo -u nswas /usr/local/bin/php -a spip.php
Interactive mode enabled

Fatal error: Call to undefined function: (null)() in /home/nswas/public_html/ecrire/inc/utils.php on line 308

This seems to be a problem with the script itself :

// recuperer la base
$a = array_shift($url);
if (!$a) $a= ‹ ./ ›;

Hello,

we had a very similar problem (with 1.9.1) here and could never find what it was exactly that was cosing the 500. At the end, the support changed somethings in the .htaccess and it never happened again, but I don't know what they did exactly.

What we saw is that the error only happened to the user that are logged in (have the spip cookie) and not to simple visitors.

Hope this can put you on the way.

Pierre

Howard Shippin wrote:

Our site has developed a problem I never saw before.
Our installation is SPIP 1.9.2 [8782]

In the public area, some of the rubriques (e.g. http://nswas.org/rubrique22.html )are available, but most rubriques (e.g. http://nswas.org/rubrique1.html) and all articles are not available, with a 500 Internal Server Error.

The site has been working well for several months on the present hosting. After contacting support, they say the script is segmentation faulting (their message follows).

I checked the file permissions, and all the directories for the spip directories and subdirectories
/tmp /ecrire /oo /IMG /dist /config /local
and they are 755, with files in them at 644.

The private area is working fine. Any ideas?

Message from hosting company support:
Your script is segmentation faulting :

[root@gator303 /home/nswas/public_html]# sudo -u nswas php spip.php
Segmentation fault (core dumped)

[root@gator303 /home/nswas/public_html]# sudo -u nswas /usr/local/bin/php -a spip.php
Interactive mode enabled

Fatal error: Call to undefined function: (null)() in /home/nswas/public_html/ecrire/inc/utils.php on line 308

This seems to be a problem with the script itself :

       // recuperer la base
       $a = array_shift($url);
       if (!$a) $a= './';

--
Howard Shippin