Support

Akeeba Backup for WordPress

#24627 Got Weird message in the REPLACE windows

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Saturday, 09 April 2016 17:20 CDT

jimKembleAkeeba
I was able to get it to work but I had to delete the weird code message from the two Find/Replace boxes in the last step. THEN I just put in the old domain name on the left and the new domain on the right to do the find/replace. I deleted the weird code message. Is this OK if I delete it? What did the weird code mean?
Here it is...
<br />
<b>Warning</b>: array_keys() expects parameter 1 to be array, object given in <b>/home/vall2016/public_html/installation/platform/views/replacedata/tmpl/default.php</b> on line <b>36</b><br />
<br />

BELOW IS THE REPLACE CODE WHICH WAS IN THE RIGHT BOX

<b>Warning</b>: implode(): Invalid arguments passed in <b>/home/vall2016/public_html/installation/platform/views/replacedata/tmpl/default.php</b> on line <b>36</b><br />

tampe125
Akeeba Staff
Hello Jim,

what's your Akeeba Backup version? You can see it in the main page of the plugin.
Please try updating, since we fixed this issue in the latest version.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jimKembleAkeeba
Hello Davide, I will be sure to update all my Abeeba Backups to the latest version next time. Can you tell me if I was OK to just delete that weird replacement code block and just add in my before and after DOMAINs?

tampe125
Akeeba Staff
Yes, you can manually change them, more info here.
However, you can easily manually fix this issue by renaming the following file to lowercase:

installation/platform/models/wordpressreplacedata.php

That should do the trick.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jimKembleAkeeba
Thank you for the GREAT support.

tampe125
Akeeba Staff
You're welcome!
Were you able to fix your issue?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jimKembleAkeeba
I was not able to rename the installation/platform/models/wordpressreplacedata.php file to lower case because I manually deleted the whole directory after restoration because the process did not give me the normal button to auto delete it. Things were weird from the beginning with that odd replacement block of code (that I decided to just delete)
Even though I inserted the old domain and new domain in the replacement boxes respectively, the actual links in the site did NOT rename. The links were broken and I had to do a DB dump, then I used an online tool (that I trust) to do renaming and serialization. I then imported that renamed SQL into a clean DB and linked to it in wp-config file. Here's the tool if it helps anyone http://pixelentity.com/wordpress-search-replace-domain/

I'm understanding that if I would have started with the updated Akeeba backup for WP version, there would have been no issues.

tampe125
Akeeba Staff
Search and replace inside the database is a core feature of the restoration engine. You could have pinged me, I would be more than welcome to help you.
Anyway, please remember to update your installation, so that won't happen again in the future.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!