Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter rasmus851

    (@rasmus851)

    Right, i am getting a success on backing up the database when pull, though no changes to my DB was made.

    I found out that git throws a 128 error as a last status entry in the dashboard, which seems to be the only issue at the moment (Assuming that this error is why the database is unchanged, even though it gives a “backed up successfully” message)

    Thread Starter rasmus851

    (@rasmus851)

    And more info.

    It would seem that it removes the files from the backup folder, searches after them, in which case it fails, and then puts them back into the folder (Guessing from the git repository)

    So, all in all, it would seem the verify_backup function fails as there is no files to check on, thus returning a false.

    I could use some guidance as to how i can get this to work.

    Thread Starter rasmus851

    (@rasmus851)

    I tried to create a file in the folder and i could get that without a problem, but the files created by the program is non-existing to the program.

    Im running it through XAMPP, btw

    Thread Starter rasmus851

    (@rasmus851)

    I have looked into it and it would seem i am unable to access the files in the revisr-backups folder.

    When i try to interate through the files in the folder i am only shown the .htaccess and index.php files, even though there is a bunch of SQL files as well.

    I can access the files from the URL that

    "{$this->backup_dir}revisr_$table.sql"

    generates. Even though file_exists() says there is no file at that location…

    Thread Starter rasmus851

    (@rasmus851)

    I found the problem, the DB_HOST had a “:” appended to it but no port number, resulting in an invalid string.

    In class-revisr-db.php on line 103 in the else block the $add_port is set to nothing and the $db_host is set to DB_HOST

    As the DB_HOST contains a trailing “:” as it expects a port, it generates a false invalid host for mysqldump and the execution fails.

    I replaced the else block with

    else {
       $add_port 	= '';
       $db_host 	= str_replace(":", "", DB_HOST);
    }

    to get rid of the redundent trailing “:” from the $db_host

    Works like a charm now, my dear DB is backed up and i am happy.

    Great plugin, btw!

    Thread Starter rasmus851

    (@rasmus851)

    Okay, I spoke with my host.

    They said that mysqldump is installed, but as the web server and DB are on different machines, I need to use “–bind-address=ip_address” option in the mysqldump to get it to work.

    So, is there a hook i can yoink and set this param, or do you have an idea how i might achieve this?

    Thanks in advance

    Thread Starter rasmus851

    (@rasmus851)

    Got it fixed

    in ShortCodes/DisplayFAQs.php on line line 100, change the strpos to stripos to make the search case insensative

    Thread Starter rasmus851

    (@rasmus851)

    Hmm, might it be because i use Adblock Plus in a Chrome browser?

    I did some research and it would seem that fontawesome icons is being tagged as ads.

    Thread Starter rasmus851

    (@rasmus851)

    Works like a charm, thank you for your time!

    Thread Starter rasmus851

    (@rasmus851)

    Hey, thanks for getting back to me.
    For some reason I did not get a mail when you replied, hence my late respons.

    But the link is https://alarmhjaelp.dk/test/faq/

    When i do a search i get said JS error.

Viewing 10 replies - 1 through 10 (of 10 total)