MySQLDumper-Board Forum Index Follow me on Twitter

Portal  •   Forum  •  Downloads  •  Profile  •  Search   •  Register  •  Log in to check your private messages  •  Log in  •  


 Install problem using PHP 5.3

Post new topicReply to topic
Author Message
Kymation
knows MySQLDumper
knows MySQLDumper





Joined: 13 Jul 2011
Posts: 4


usa.gif

PostPosted: 2011-07-14, 00:46    Install problem using PHP 5.3 Reply with quoteBack to top

I've installed MySQLDumper before using older versions of PHP and it works great. Trying to install on a new server today and it's giving me a blank page back at the very beginning. I have error reporting set to E_ALL and display_errors to 1. The install.php is returning an HTTP 200 header with a content length of 0.

Info:
MySQLDumper Version 1.24.4.
MySQL 5.0.91-log and PHP Version 5.3.6
Shared hosting server
phpMyAdmin Version 3.4.0 is installed and working.

Any hints about where to look will be gratefully accepted.

Regards
Jim

OfflineView user's profileSend private message    
Anzeigen











Posted:    Anzeigen Back to top


    
Kymation
knows MySQLDumper
knows MySQLDumper





Joined: 13 Jul 2011
Posts: 4


usa.gif

PostPosted: 2011-07-14, 05:21    (No subject) Reply with quoteBack to top

Well, I've made some progress on this. In inc/runtime.php, change
$config['paths']['root']=Realpfad('./');
to
$config['paths']['root']='./';

This allows the install to complete, apparently successfully. It then gets through the first two files of a multi-part backup before the content frame goes blank. I now need to find out exactly what part of the code doesn't like knowing the full path. (Yes, I checked the path that Realpfad() is generating and it is correct.)

Regards
Jim

OfflineView user's profileSend private message    
Kymation
knows MySQLDumper
knows MySQLDumper





Joined: 13 Jul 2011
Posts: 4


usa.gif

PostPosted: 2011-07-14, 06:51    (No subject) Reply with quoteBack to top

OK, I lied. The path was not correct. The problem is in the Realpfad() function. This line:
$dir=str_replace('inc','',$dir);
is supposed to remove the /inc/ directory from the string. Unfortunately, the account this code is running in has "inc" as part of the account name (and the account name is part of the path.) My fix was to replace that line with:
$dir=str_replace('/inc','/',$dir);
That works in my case, but it's not a good general solution. Probably something with preg_replace() would detect the "inc" string at the end. I'll play with that after I get these backups done.

Regards
Jim

OfflineView user's profileSend private message    
Jens_K
Moderator
Moderator




Age: 37
Joined: 04 Sep 2007
Posts: 1710
Location: Nähe Bielefeld


germany.gif

PostPosted: 2011-07-14, 11:51    (No subject) Reply with quoteBack to top

This has been fixed in the next version of MySQLDumper.

Sometimes it happens, that MSD is installed in a sub-directory that has "inc" somewhere in it's path, but it's not that often. So the few times it happens, the users usually come here and we figure it out.

http://forum.mysqldumper.de/fehler-bei-pfad-mit-inc-t5355.html
(german thread)

Replace in inc/functions_global.php the function "Realpfad" with this:
function Realpfad()
{
   $dir=dirname(__FILE__);
   $dir=str_replace('\\','/',$dir);
   $dir=str_replace('//','/',$dir);
   if (substr($dir,-4)=='/inc') $dir=substr($dir,0,-3);
   if (substr($dir,-1)!='/') $dir.='/';
   return $dir;
}

_________________
It's like math-camp all over again ... not ... that i've ever been to math-camp!
mein Blog

OfflineView user's profileSend private messageVisit poster's website    
Kymation
knows MySQLDumper
knows MySQLDumper





Joined: 13 Jul 2011
Posts: 4


usa.gif

PostPosted: 2011-07-14, 19:10    (No subject) Reply with quoteBack to top

Unfortunately I can't read German well enough to have been able to use that. I figured it out anyway, despite the lack of any useful error messages.

May I suggest adding a test to the Realpfad() function to generate an error message when the path doesn't exist? It would certainly make it a lot faster to figure out things like this.

Thanks for responding, and thanks again for MySQLDumper.

Regards
Jim

OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16070
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2011-07-14, 19:59    (No subject) Reply with quoteBack to top

« Kymation » wrote:
May I suggest adding a test to the Realpfad() function to generate an error message

We solved this by not using this way anymore. So there is no need to fix this. Wink
The next version is being re-written from scratch. Of course we tried to avoid all the pitfalls that crossed our way in the last 8 years.

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   


Show permissions
Similar topics
Topic Author Forum Replies Posted
No new posts Problem beim wiederherstellen lemital Gelöst/Erledigt 21 2011-12-18, 19:28 View latest post
No new posts restore problem theking Errors and questions 5 2011-12-18, 14:59 View latest post
No new posts Problem bei Installation korbava Gelöst/Erledigt 2 2011-11-26, 23:13 View latest post
No new posts MySQL Verzeichnisschutz Problem queencalliope Gelöst/Erledigt 5 2011-11-08, 21:27 View latest post
No new posts Problem Backup / Problem Wiederherste... Omi Gelöst/Erledigt 5 2011-09-26, 13:31 View latest post

 
CrackerTracker © 2004 - 2012 CBACK.de

Powered by Orion based on phpBB © 2001, 2002 phpBB Group
CBACK Orion Style based on FI Theme
All times are GMT + 2 Hours

phpBB SEO