Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Can’t login after 2.4 upgrade
Posted: 06 March 2005 12:37 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  34
Joined  2004-03-06

I’m encountering at least two problems after upgrading to pMachine 2.4.

First, I can’t login anymore. When I debug the login process, I get the following four errors:

Warning: Undefined variable: _COOKIE in ...inc.cp.php on line 56
Warning: Undefined variable: _GET in ...inc.cp.php on line 66
Warning: Undefined variable: _POST in ...inc.cp.php on line 89
Warning: Undefined variable: _SERVER in ...inc.cp.php on line 113

(Just for display here, I replaced the path with ...)

Also, I cannot do searches or post comments any more. Comments return an “Invalid page request” message, while searches return an “Invalid Secure Form Value” error.

I suspect the two (or three) problems may be related somehow, as they all involve forms. Any ideas?

Otherwise, everything else seems to work. smile

Profile
 
 
Posted: 06 March 2005 05:06 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

I would suggest downloading a fresh copy of the install files (to ensure you don’t have corrupt copies) and re-uploading the files/directories mentioned in the update instructions.  Be sure to upload in ASCII format and that the files on the server get overwritten.


Some relevant Knowledge-Blog entries:

“Invalid Page Request”

“Invalid Secure Form Value”

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 07 March 2005 04:31 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  34
Joined  2004-03-06

1. I downloaded a fresh copy of 2.4 and uploaded the files to our server. I made sure to upload everything in ASCII format. But we still cannot log in to the control panel. The same errors are being reported.

2. I tried setting the $cookie_domain in config.php. No change.

3. I could try to take care of the “Invalid Secure Form Value” error, but I understand that needs to be done by changing a setting in general preferences. But in order to do that, I need to be able to get into the control panel. :(

Profile
 
 
Posted: 07 March 2005 07:52 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Are you running PHP 4.1 or newer?  pMachine requires that version as a minimum.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 07 March 2005 10:37 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  34
Joined  2004-03-06

Yes. As I said, everything else works fine, so pMachine is doing its job as far as our readers are concerned. The problems are that we can’t get into the control panel and that no one can post comments or do a searcch.

Profile
 
 
Posted: 07 March 2005 11:19 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

I ask the question because the variables such as “$_COOKIE”, “$_SERVER”, etc. were introduced in PHP v4.1 and weren’t available in earlier versions.  If your server is running an earlier version of PHP then that could cause problems; including problems with logging in.

Can you link to a phpinfo file on your site/server to verify the version?

If you don’t have one, simply create a file with a name like phpinfo.php and then place this content inside it.

<?php phpinfo(); ?>

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 March 2005 04:02 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  34
Joined  2004-03-06

Ah, you’re right. Our ISP has us on 4.06. We’ll have to see about upgrading that to 4.1 or above. But what if we can’t? Can we hack the code to make the control panel work under 4.06?

Profile
 
 
Posted: 08 March 2005 11:26 AM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

I’m afraid that pMachine 2.4 only works on PHP 4.1 or newer.  PHP 4.1 has been out for quite a long time now, so I don’t see why your Host wouldn’t want to update to a newer version.  4.0.6 is positively ancient as the “online world” measures time. [grin]

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64515 Total Logged-in Users: 0
Total Topics: 81074 Total Anonymous Users: 0
Total Replies: 436310 Total Guests: 15
Total Posts: 517384    
Members ( View Memberlist )
Active Members: