1
nmshah
Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/7 6:06

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


My site was originally developed on php 4.4.7 and MySQL 4. Things were fine till then. Recently i have just upgraded to a new host with the following specifications:

Xoops version                XOOPS 2.0.18.1
Website URL                http
://makingdestiny.com
XOOPS Physical Path        /home/nmshah/public_html
Protector module        Not installed
Module 
for your start page    None
Default theme                   Zetagenesis
Check templates 
for modifications ?    No
Default template set               New
Debug mode                       Off

Software server    Apache
/2.0.63 (Unixmod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.4

PHP version    5.2.4
MySql version    5.0.45
-community
Statut safe mode    ON
Register Globals    ON
allow_url_fopen    OFF This May Cause Problems
session
.use_trans_sid    ON
GD librairie Support    thumbs available bundled 
(2.0.34 compatiblethumbs available
Upload Statut    ON
Max upload size    2M


After the upgrade i m no longer able to deactivate the modules, or change the weight of the modules or rename them etc.

When i try to change any of these things and click the submit button, i m instead of going to the confirm action page, go to the system admin page.

I m using XOOPS 2.0.18.1

Please help me, have no idea of what i should do.

2
Anonymous
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/7 8:51

  • Anonymous

  • Posts: 0

  • Since:


Are you able to do anything else in admin, such as chance theme, check for new templates, etc?

Can you add forum posts, news items and other content away from the admin panel?

I had this problem when my host updated to php 5.2.5 from 5.2.3 and added a couple of extra php functions into the bargain.

[edit]
Are you able to refresh the "system" module?

3
avtx30
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/7 9:20

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Do you have suhosin installed? If yes please check if it drops SQL queries selecting high number of modules one time.

Check if suhosin installed by a command: php -v

For example, I have 25 modules installed. When I tried to de-activate a module, XOOPS selects these 25 then suhosin dropped that query. I solved this problem by increasing a variable called max_vars to a high number, around 200.

See this also:http://forum.hardened-php.net/viewtopic.php?pid=1444
Xoops Demos:
http://www.nhatban.net/info/a0021.html

4
nmshah
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/7 13:07

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Are you able to do anything else in adminsuch as chance themecheck for new templatesetc?

Can you add forum postsnews items and other content away from the admin panel?

I had this problem when my host updated to php 5.2.5 from 5.2.3 and added a couple of extra php functions into the bargain.


I m able to do everything including updating of modules. Theme change is also possible. Not able to add posts in cbb 3.08 but d3forum is working fine.

Are you able to refresh the "system" module?


If you mean update systems module, then yes.

Do you have suhosin installed? If yes please check if it drops SQL queries selecting high number of modules one time.

Check if suhosin installed by a commandphp -v

For exampleI have 25 modules installedWhen I tried to de-activate a moduleXOOPS selects these 25 then suhosin dropped that queryI solved this problem by increasing a variable called max_vars to a high numberaround 200.

See this also
http://forum.hardened-php.net/viewtopic.php?pid=1444


I have no idea of what suhosin is? and where to make these changes. If you can please help me with this.

Thanks for the help, i m not sure where will i be without this great community.

5
avtx30
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/7 16:53

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Please see my above post to know about suhosin - it's a PHP extension to secure PHP codes.

Place a file called foo.php with the following content
<?php
   phpinfo
();
?>

under XOOPS_ROOT_PATH then access it via a browser, look into the page displayed then to see if it reads something like:

Quote:

PHP 5.2.x (cli) (built: Nov 14 2007 03:53:35)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Suhosin v0.x.yz, Copyright (c) 2007, by SektionEins GmbH
Xoops Demos:
http://www.nhatban.net/info/a0021.html

6
nmshah
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/8 12:53

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I did as mentioned with respect to the foo.php but the page contains no reference to Suhosin.

U can check it out here
http://makingdestiny.com/abc.php

7
avtx30
Re: Unable to inactivate and uninstall modules after upgrade to php 5.2.4
  • 2008/3/8 15:35

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Are you sure?? Your page is now printing
Quote:


Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.23, Copyright (c) 2007, by SektionEins GmbH
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies


Resized Image

(you can search "suhosin").

I am now absolutely believe that your problem is caused by suhosin. Follow the link in my first reply to solve it. Good luck!
Xoops Demos:
http://www.nhatban.net/info/a0021.html

Login

Who's Online

304 user(s) are online (194 user(s) are browsing Support Forums)


Members: 0


Guests: 304


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits