Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> PHP5 Conversion Issues From PHP4
Author Message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Thu Nov 15, 2007 2:41 pm Reply with quote

The only thing i have noticed is the Backup DB via the admin control panel isnt working. Just noticed it today, could be related to something else i suppose....

although, it works if i remove the addhandler line that tells it to run in php5
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Nov 18, 2007 12:42 pm Reply with quote

Are you referring to the ACP in nuke? If so, check your server error log to see if there's a MySQL error.
 
View user's profile Send private message
spasticdonkey







PostPosted: Mon Nov 19, 2007 11:09 am Reply with quote

ya sorry i didnt give more info. the latest RN distro, on RWH. the nuke acp, backup database option. works under php4 but not php5.
I get a 500 internal server error when trying to use.

if you are talking about the cpanel error log only thing i saw as a possibility was:
File does not exist: /home/myname/public_html/config/sender.php
 
Raven







PostPosted: Mon Nov 19, 2007 1:24 pm Reply with quote

RN does not have any folder called config so I don't think that has anything to do with it.
 
spasticdonkey







PostPosted: Mon Nov 19, 2007 7:26 pm Reply with quote

ya i looked into it - looks like that was from some kind of hack attempt designed for some other cms, joombla maybe....

I can tell you that i'm building another site with a "barebones" database and it does the same thing, also under RN. So not sure it's an sql error. If i remove this from htaccess it works fine on both sites.

Quote:

AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml



so i assumed it had to do with the upgrade to php5.. if there is somewhere else to look at errors (other than cpanel) I'd be glad to spend some time troubleshooting.
 
Raven







PostPosted: Mon Nov 19, 2007 8:37 pm Reply with quote

A 500 error is almost always a misconfigured .htaccess file. But that line of code is correct so it is something else. I have logged it as an issue in our issue tracking system. We will get back with you if/when we resolve it.
 
spasticdonkey







PostPosted: Tue Nov 20, 2007 1:56 am Reply with quote

thats cool - not critical there are others ways to get the job done. just thought you might want to know since it seemed like, at least on the surface, a php5 issue.
 
southern
Client



Joined: Jan 29, 2004
Posts: 624

PostPosted: Tue Nov 20, 2007 1:31 pm Reply with quote

spasticdonkey wrote:
ya i looked into it - looks like that was from some kind of hack attempt designed for some other cms, joombla maybe....
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml


I have that addhandler line in my .htaccess so in effect I'm running PhP5 and I can backup my RavenNuke database through the RN ACP. I don't think PhP5 is the issue. Maybe your database has been corrupted by the same hack attempt that put the config folder in your site, that is what shell sc ripts do, create folders and files that don't belong and mess w/t database.

_________________
Computer Science is no more about computers than astronomy is about telescopes.
- E. W. Dijkstra 
View user's profile Send private message
spasticdonkey







PostPosted: Tue Nov 20, 2007 7:06 pm Reply with quote

i didnt have a config folder, that was in the error log. the hack attempt was looking for that file. thought possibly it was a server folder i didnt have access to see....

However, I'll take another look at it, since it's working for you.
 
southern







PostPosted: Tue Nov 20, 2007 8:31 pm Reply with quote

Oh OK,Well why not get a copy of Raven's Hack Alert sc ript from D/Ls, rename it sender.php make a config folder and put it in there, then if the hack attempt comes looking for it you'll know who and what it is. Just put your admin email in it...
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Nov 26, 2007 10:31 am Reply with quote

I don't know if this is the cause but there are errors in backup.php.

The function mysql_die tries to access variables that are out of scope. You need the line:

global $strError, $sql_query, $strSQLQuery, $strBack, $strMySQLSaid;

at the top of that function.

I was able to run a backup thru the ACP on my localhost using php5.2.5 after doing that. Also the variable $name is undefined. I'm not sure what the author intended that to be (and I don't care). But you can make it a global at the top of the program (right after the access denied) by putting in this line:

global $prefix, $db, $admin_file, $name;

* note $name is just added to the other globals there.

If someone can test this and see if it fixes the situation that would be appreciated.

Hopefully we will be able to get a fix in 2.20 (or eliminate the backup entirely). I'm not entirely comfortable that the undefined variables are what's causing this but they are errors. However, I can't replicate the problem and I am able to get a backup under PHP5.x.
 
View user's profile Send private message Visit poster's website
spasticdonkey







PostPosted: Wed Nov 28, 2007 1:01 pm Reply with quote

Well I tried the fix and no change. Was gonna troubleshoot some more but looks like the conversion to php5 is complete, so when removing the addhandler line i can no longer try in php4 (it worked without that line prior to conversion)

Tried it with a "virgin" htaccess file on a fairly new, non-public, unmodded database and still no luck Sad

i get a 500 error when trying to backup via ACP in IE.
In firefox i get this instead of save as sql

Image

i'm in a remote area and NOT on high speed Sad 15kb sec 128kISDN line...
this option was always the fastest for me - seemed to build the file dynamically instead of downloading a large file...
 
fkelly







PostPosted: Wed Nov 28, 2007 2:33 pm Reply with quote

I am working on a version of backup.php for Ravennuke 2.20. I can probably forward you a copy in a day or two to try out, I am just making what I hope are some final changes today. The old program was riddled with bugs. I still would recommend using something like PHPmyadmin or a host based backup program but we'll provide a working backup.php for those situations where you can't.

If you don't have it you will want to get bigdump (search for links) and gzip the dump file on your PC before reuploading it to the server. With IP2country and some other big tables in the Nuke database it really isn't practical to restore the database any other way.
 
spasticdonkey







PostPosted: Tue Dec 04, 2007 1:07 pm Reply with quote

sounds great man Smile
for now i'll stumble thru the less user-friendly (for me) way of backups Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> PHP5 Conversion Issues From PHP4

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©