1
Anonymous
Unable to write to main menu.
  • 2007/3/2 16:54

  • Anonymous

  • Posts: 0

  • Since:


Hi,

Since moving server I've noticed two things that I need some advice with:

1. When updating a module I get two error message on the screen:

a) Failed open file
b) Unable to write to main menu.

2. The RSS on my CBB 3.08 installation has stopped working.

All advice greatfully received.

Many thanks

2
stefan88
Re: Unable to write to main menu.
  • 2007/3/2 17:07

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,
About 1) - enable PHP debug in XOOPS admin -> system -> general preferences and look for errors ...
..

3
Anonymous
Re: Unable to write to main menu.
  • 2007/3/2 17:14

  • Anonymous

  • Posts: 0

  • Since:


If I turn on debug then I get the following "errors":

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 273

Warning: fopen(/cache/adminmenu.php): failed to open stream: Permission denied in file /include/cp_functions.php line 417

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 367

Notice: Only variables should be assigned by reference in file /modules/system/admin/modulesadmin/main.php line 485


With php debugging on, my site gives a white page - only admin site works

4
Anonymous
Re: Unable to write to main menu.
  • 2007/3/2 17:19

  • Anonymous

  • Posts: 0

  • Since:


Okay......the error relates to this:

416 $filename = XOOPS_CACHE_PATH.'/adminmenu.php';
417 if ( !$file = fopen($filename, "w") ) {
418 echo 'failed open file';
419 return false;

Help!!! Where is XOOPS_CACHE_PATH defined?

5
Anonymous
Re: Unable to write to main menu.
  • 2007/3/2 17:29

  • Anonymous

  • Posts: 0

  • Since:


Okay..... that was easy

CHMOD-ed the "cache" dir to 777 and the RSS is working again.

Do I need to alter the CHMOD setting on the adminmenu.php file too?

Thanks for listening/holding my hand

6
Anonymous
Re: Unable to write to main menu.
  • 2007/3/2 17:45

  • Anonymous

  • Posts: 0

  • Since:


Quote:
JAVesey wrote:

Do I need to alter the CHMOD setting on the adminmenu.php file too?


The answer is "Yes" - CHMOD-ed to 666 and problems now resolved

All I need to do now is get the site to work with php-debugging turned on and everything the world will be right with me

Login

Who's Online

332 user(s) are online (272 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

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

Latest GitHub Commits