| Author |
Message |
Kymation
knows MySQLDumper

Joined: 13 Jul 2011
Posts: 4

|
Posted:
2011-07-14, 00:46 Install problem using PHP 5.3 |
  |
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
|
|
  |
 |
Anzeigen
|
Posted:
Anzeigen |
 |
|
| |
 |
Kymation
knows MySQLDumper

Joined: 13 Jul 2011
Posts: 4

|
Posted:
2011-07-14, 05:21 (No subject) |
  |
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
|
|
  |
 |
Kymation
knows MySQLDumper

Joined: 13 Jul 2011
Posts: 4

|
Posted:
2011-07-14, 06:51 (No subject) |
  |
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
|
|
  |
 |
Jens_K
Moderator

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

|
Posted:
2011-07-14, 11:51 (No subject) |
  |
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
|
|
   |
 |
Kymation
knows MySQLDumper

Joined: 13 Jul 2011
Posts: 4

|
Posted:
2011-07-14, 19:10 (No subject) |
  |
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
|
|
  |
 |
DSB
Developer


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

|
Posted:
2011-07-14, 19:59 (No subject) |
  |
« 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.
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.
|
|
    |
 |
|
|
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
|