WordPress.org

Ready to get started?Download WordPress

Forums

XCloner - Backup and Restore
[resolved] Broken (25 posts)

  1. FenyX
    Member
    Posted 3 years ago #

    The option menu in Plugins > XCloner just shows... my homepage in frame, lol. I've touched nothing yet, only uploaded the xcloner folder to my WP plugins directory and activated it. Just won't work!

  2. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    XCloner can also be accessed directly using the link to the plugin folder, like

    http://mysite.com/wp-content/plugins/xcloner-backup-and-restore

    If you still get a blank page there, i would advise enabling php errors on your server to see what the actual error is, what php version are you running?

    Ovidiu

  3. FenyX
    Member
    Posted 3 years ago #

    PHP Version : 5.2.17

    And yes you are right. Using the URL you gave me, I can access the XCloner Manager Authentication Area immediately. Thanks for your so quick support. And sorry for being a noob, lol

    Note: with one more vote, the compatibility check of your WP.org plugin page is now green ;-)

  4. FenyX
    Member
    Posted 3 years ago #

    Sorry to be bothering but I need more help. Here is a screenshot of the page I get in the User Authentication tab of the Settings menu.

    I can't find nor a save button nor any way to save my changes. Do you have any idea of where I should look for it? Do I have to "Edit config file: cloner.config.php" manually?

  5. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    That is pretty weird, can you check and see if you get any javascript errors, usually you should see the Save button in the top right, are you able to see the toolbar buttons in the View Backups area for instance?

    If you are able to share that page url, please send me an email here http://www.xcloner.com/contact/ and i will take a look to see what the issue is, please include also the XCloner admin details

    Regarding the frame error you got, could it be caused by a local firewall/ads blocker from your computer?

    Regards, Ovidiu

  6. FenyX
    Member
    Posted 3 years ago #

    The problem can't come from firewall but could come from my NoScript and AdBlock Plus extensions for Firefox. Even if I had already added some rules to allow javascript from xcloner.com, now I've completely disabled the 2 extensions. But the problem remains the same.
    After more researches, I can see in Firebug that both Save and Cancel buttons are located in div id="toolbar" but this toolbar is set to style="display:none" (screenshot). I've tried with Firefox, Chrome and even IE8. I can see the 2 Logout and Cancel blue buttons on top-right in XCloner Main Menu from any browser. But there's no more button when I click on Settings. Really strange. I've searched for a problem with my CSS styles, but the display property is set in the div element itself, not in any CSS file.

    And yes, I can also see the 5 buttons of the top toolbar in View Backups area. Even more strange.

    There's no post in my blog because it's a kind of template, a site configuration that I will copy to multiple blogs, so I'll just have to change the theme for each one. I've sent you more details through your contact form.

  7. FenyX
    Member
    Posted 3 years ago #

    Ok, the frame problem is simple to solve. For my blog's security I've renamed the /wp-content/ folder to /files/ (using the WordPress wp-config.php file). So I've edited xcloner.php to change the plugins path.

    Maybe the future releases of your WordPress plugin could use the WP plugins_url() function to avoid this for other users but I don't know if it is technically possible.

    Anyway it seems to be not so important as it doesn't fix the buttons problem. But at least now I can open XCloner from the WP Admin area.

  8. FenyX
    Member
    Posted 3 years ago #

    Also found the wp-content/ directory in cloner.config.php. Replaced too and still doesn't make the top right buttons appear in Settings. the only change is Temporary Path Check in main page shows Invalid directory (/home/fenyx/domains/anydomain.com/public_html/administrator/backups) now. Why is it not finding the right plugins directory anymore? I don't know. Above all I can't try to fix anything without the Save button, as you already know.

    I hope all your users aren't causing you as much troubles as me, lol

  9. FenyX
    Member
    Posted 3 years ago #

    The HTTP Headers monitored when clicking the Settings button in Main Menu: [link]

    Not sure it could help by any way.

  10. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    From what i have been able to check, the server seems to stop the script when it asks if the exec function is enabled, around line 2053->2056

    if(function_exists("exec")){

    $out = @exec("ls -al");
    }

    inside the wp-content/plugins/xcloner-backup-and-restore/admin.cloner.html.php file, check the XCloner Config, Info tab, you will see that page is incomplete

    I would advise checking with your hosting support on this as the issue is generated by their server config, or simply remove that code, it should help.

    Regards, Ovidiu

  11. FenyX
    Member
    Posted 3 years ago #

    I've tried to remove the part you've shown me so now it looks like this:

    <?php
    
    			$out = "";
    
    		        $val = ($out != "")? "ENABLED":"<font color='red'>DISABLED</font>";
    		        echo HTML_cloner::get_color($val, 'DISABLED');
    		        ?>

    But it still doesn't work. Should I remove this entirely too?

    I don't understand why their server would add a display:none style to the DIV but I'll follow your advice and will discuss it with my hosting support team.

    Thanks a lot for your efforts to help me. I will let you know the result of the discussion with support...

  12. FenyX
    Member
    Posted 3 years ago #

    By the way, Php open_basedir returns a red text:
    "/home/myname/:/tmp:/var/tmp:/usr/local/lib/php/"
    I don't know why it's in red text but this path seems complicate too me. Couldn't it be related?

  13. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    The open_basedir is not related to this matter, we mark that with red in case users need to track down permission issues.

    Regarding the display:none, that code is being enabled only when the page is fully loaded, so when the config page will display properly, that code should work

    Ovidiu

  14. FenyX
    Member
    Posted 3 years ago #

    Aaah ok. Thanks for your patience and your explanations :-D

  15. FenyX
    Member
    Posted 3 years ago #

    Confirmation by WeServIT.nl support team:

    Hi,

    The exec command is disabled for security reasons. If we enable this, clients would be able to execute Linux commands on our servers.

    So my only way seems to be a Linux VPS. More expensive but I will seriously think about it. I just think that my lack of skills could be a big problem. Still hesitating.

    I'm really thankful for all your help and for the time you've been working on solving my problem. And for sure I will install XCloner as soon as it will be technically possible to me.

  16. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    XCloner does not require the exec function to be enabled, it can work without it also, just that the code should not break when it asks for that function existence, so I think your hosting support still need to fix this!

    Send them the code i sent you earlier so they can test it, the script should finish execution under normal conditions with or without exec function enabled!

    Regards, Ovidiu

  17. FenyX
    Member
    Posted 3 years ago #

    I had already sent them the code in my first request. They answered me once again that I should choose a VPS solution. So I've said:

    But the script doesn't require exec to be enabled. Developer says your server's config makes the script stop when ONLY testing "if exist", while if it is diabled it should just continue the script without using exec.

    One more time, as posted above, the developer said me:
    "It can work without it also, just that the code should not break when it asks for that function existence, so I think your hosting support still need to fix this! (...) the script should finish execution under normal conditions with or without exec function enabled!"

    That's why this problem seems to be not related to enable or not the exec function.

    Support answer:

    Hi,

    It can be another function which is disabled, this functions are disabled at this moment:

    system, shell_exec, exec, passthru, php_uname, popen, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,posix_setgid, posix_uname, proc_close, proc_nice, proc_open, proc_terminate

  18. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    They don't seem to be very responsive, you might be better off removing that piece of code.

    Cheers, Ovidiu

  19. FenyX
    Member
    Posted 3 years ago #

    They don't seem to be very responsive

    No but I can understand their concern about security. I've tried several hosting providers before this one and I've never had any security problem with their restrictive configuration. Restrictive but no XSS, no SQL or file injection and such attacks. I'm tired of chinese hackbots. That's why I appreciate this company's security strategy for shared hosting. I just didn't know that the price to pay for this was so much deactivated functions.

    Anyway I had already planned to get a VPS for myself, I will just get it sooner than expected. :-)

  20. polpaulin
    Member
    Posted 2 years ago #

    when I try to move the distant backup on my localhost (MAC with mamp server) localhost:8888/mysite.com/xcloner.php I get : Restricted access

    the 3 files are at the right place
    mysite_2012_01_11.tar
    TAR.php
    xcloner.php

    Akeeba backup for joomla is working so easily and so fine , I don't know what to do with wordpress

    any help ?

    thank you

  21. xcloner
    Member
    Plugin Author

    Posted 2 years ago #

    Try and access the restore script from this link localhost:8888/mysite.com/XCloner.php , notice the upper case letters....

    If you still have issues, try and reset the permissions on that restore folder to defaults, are you able to run any other php script inside the mysite.com folder?

    Ovidiu

  22. polpaulin
    Member
    Posted 2 years ago #

    with or without upper case I get Restricted access (but the file name is lowercase )

    I have not to reset any permission because any php scrip are working fine in my localhost:8888/ on any local website ( > 50 websites)

    thank you

  23. xcloner
    Member
    Plugin Author

    Posted 2 years ago #

    I am afraid the issue you have there is not from XCloner, the server seems to stop the script from running for some reason.

    Regarding php scripts, I was referring to php scripts inside your restore directory, for instance create a small test.php and add any code to it, then try to run it from the same directory where XCloner.php is to see if you get the same error?

  24. polpaulin
    Member
    Posted 2 years ago #

    any php file in that website folder are working fine of course

    but I cannot imagine how your xcloner can find a components/com_xcloner/index.php when the folder is empty

    <iframe src='components/com_xcloner/index.php' width='100%' height='900' frameborder=0 marginWidth=0 frameSpacing=0 marginHeight=110 ></iframe>

  25. polpaulin
    Member
    Posted 2 years ago #

    I understand it is another XCloner.php , but why did you call 2 files withe same name ?
    XCloner.php and xcloner.php

    anyway when I fill the form with DB name and press start install I get Internal Server Error

    if I install a Joomla website in that folder with Akeeba backup it works

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic