Webmastersite.net
Register Log In

can't load switches.php in Admin
recent update.. now switches.php won't load?

Comments on can't load switches.php in Admin

DusX
Member

Usergroup: Customer
Joined: Jan 11, 2006
Location: Canada

Total Topics: 7
Total Comments: 24
DusX
Posted Feb 20, 2009 - 3:44 PM:

I have recenlty updated from 3.3.4 to 4.1.73

I have had so trouble... (I'm in Apache mode) with file permissions. (is there a list of all files and directories with associated permissions??)

anyway.. I have got passed most issues and now find that in my admin I can load every section except switches.php
I also sometimes get an error (can't seem to get it right now) regarding a reciprical (update: the error is: Call to undefined function: reciprocates() in /home/site/public_html/includes/recipcheck.php on line 43) .... This may be related as it may be one of the switches I changed... and I am quessing that a file permission is causing it not to load.

any help would be greatly appreciated.
DusX
Member

Usergroup: Customer
Joined: Jan 11, 2006
Location: Canada

Total Topics: 7
Total Comments: 24
DusX
Posted Feb 21, 2009 - 12:13 PM:

OK, update..

my site is dead unless I am logged in as admin.
If I am not logged in I get this error on the front page:

Fatal error: Call to undefined function: reciprocates() in /home/mysite/public_html/includes/recipcheck.php on line 43

and these errors on the admin login page:

Warning: fwrite(): supplied argument is not a valid stream resource in /home/mysite/public_html/includes/filefunct ions.php on line 573

Warning: fopen(cache/1-adminlogin.php.htm) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/includes/filefunct ions.php on line 574

Warning: fwrite(): supplied argument is not a valid stream resource in /home/mysite/public_html/includes/filefunct ions.php on line 574

Warning: fopen(cache/1-adminlogin.php.htm) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/includes/filefunct ions.php on line 575

Warning: fwrite(): supplied argument is not a valid stream resource in /home/mysite/public_html/includes/filefunct ions.php on line 575
Cannot write to the file cache/1-adminlogin.php.htm! You must chmod it to 666.
Warning: fclose(): supplied argument is not a valid stream resource in /home/mysite/public_html/includes/filefunct ions.php on line 577


I don't get it... this should have been an easy update.. I just went with the default templates... and didn't try anything strange. in fact I followed the instructions exactly. I have tried to chmod the cache file listed above but it doesn't exist.

HELP.
DusX
Member

Usergroup: Customer
Joined: Jan 11, 2006
Location: Canada

Total Topics: 7
Total Comments: 24
DusX
Posted Feb 21, 2009 - 2:23 PM:

I have been able to improve the situation a little.. by turning off 'autorecip' via phpMyAdmin

I am no able to display the 'site off' screen to public viewer (if logged into admin the site still loads correctly most of the time).

there are now a number of new errors listed above the 'site off' screen. they are:


Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 573

Warning: ftp_site() [function.ftp-site]: Could not change perms on cache/1-index.php.htm: No such file or directory in /home/darkfash/public_html/includes/filefunctions.php on line 193

Warning: fopen(cache/1-index.php.htm) [function.fopen]: failed to open stream: Permission denied in /home/darkfash/public_html/includes/filefunctions.php on line 574

Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 574

Warning: fopen(cache/1-index.php.htm) [function.fopen]: failed to open stream: Permission denied in /home/darkfash/public_html/includes/filefunctions.php on line 575

Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 575
Cannot write to the file cache/1-index.php.htm! You must chmod it to 666.
Warning: fclose(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 577
DusX
Member

Usergroup: Customer
Joined: Jan 11, 2006
Location: Canada

Total Topics: 7
Total Comments: 24
DusX
Posted Feb 21, 2009 - 2:49 PM:

another improvement.
by creating the 1-index.php.htm and setting its permissions.

strangley the errors are gone from the front page, and only show at: /index.php?action=userlogin
of course its a new set of errors.

Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 573

Warning: ftp_site() [function.ftp-site]: Could not change perms on cache/1-index.php%3Faction%3Duserlogin.htm: No such file or directory in /home/darkfash/public_html/includes/filefunctions.php on line 193

Warning: fopen(cache/1-index.php%3Faction%3Duserlogin.htm) [function.fopen]: failed to open stream: Permission denied in /home/darkfash/public_html/includes/filefunctions.php on line 574

Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 574

Warning: fopen(cache/1-index.php%3Faction%3Duserlogin.htm) [function.fopen]: failed to open stream: Permission denied in /home/darkfash/public_html/includes/filefunctions.php on line 575

Warning: fwrite(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 575
Cannot write to the file cache/1-index.php%3Faction%3Duserlogin.htm! You must chmod it to 666.
Warning: fclose(): supplied argument is not a valid stream resource in /home/darkfash/public_html/includes/filefunctions.php on line 577


now in cache the system has created one file now: 1-memberlist.php?rewritten=1&action=profile&id=49.ht m
not sure why it has the above error about this new file?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2009 - 12:47 PM:

DusX wrote:
Call to undefined function: reciprocates() in /home/site/public_html/includes/recipcheck.php on line 43)


This is a bug with one of the switches in 4.1.73... I see it was fixed in the 5.0 series a few months ago but I hadn't backported it to 4.1. I'll release a fixed 4.1.74 in a few hours.

DusX wrote:
and these errors on the admin login page:

Warning: fwrite(): supplied argument is not a valid stream resource in /home/mysite/public_html/includes/filefunct ions.php on line 573

Warning: fopen(cache/1-adminlogin.php.htm) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/includes/filefunctions.php on line 574


What are the permissions on your /cache/ directory?

Since you're in apache mode, do you have your FTP info entered at Admin -> Settings -> System toward the bottom?

Running some 4.1 guest cache tests now.

DusX wrote:
I don't get it... this should have been an easy update..


3.3.4 was dropped due to a critical, widely-exploited security vulnerability which I informed you of three years ago. Everybody upgraded to 3.3.21+ three years ago if they didn't want their site hacked. Considering that no one is likely to have tested an upgrade direct from 3.3.4 to anything remotely modern, it's pleasantly surprising if it works.

I upgraded someone from 3.4.1 a few days ago without any complications, but they weren't using the recip verification or cache system.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2009 - 12:59 PM:

Update: tested 4.1.73's cache system in every way I can think of and I can't find any errors. Make sure the permissions on /cache/ are 777 and that your FTP info is entered in the admin panel. Maybe try deleting and recreating the /cache/ directory.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2009 - 3:30 PM:

It looks like you're not even using the multilingual template set you have there. Deleted.

The chat table was missing. Added.

Fixed your administrator permissions to enable common tasks.

You had 755 permissions selected in system settings -- changed to 777.

I don't see any problems now.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.