Wordpress sucks?

Change every url in the database from localhost to your live url. Best way is to use notepad+ replace function. Then make sure your url settings in wp-admin is correct.

Set permalinks to default and save a theme setting.

Hey yip i have done all of that,double checked it every time. I logged on to the server to edit the site and check whats goin on, that's when i realised my rows and visual editors were gone,the site asked me if i wanted to use the creators content,not sure what the popup message exactly was,clicked yes but it did not add my rows and visual editors,it added some other editor thing.

That's when i realised that this is a plugins issue? But why would the page builder and site origins bundle plugin do this? I edited it quickly and fixed it,so what do u think happened here?

edit: it was really only the front page that was effected
 
Last edited:
You can try put the following in your wp-config.php
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');


The real issue is most likely that most of the time plugins save information in the database in a serialised format like:
a:5:{s:27:"http://yoursitename/xxx/yyy";i:168;s:6:"height";i:60;s:4:"file";s:19:"2015/02/map-pin.png";s:5:"sizes";a:1:{s:9:"thumbnail";a:4:{s:4:"file";s:18:"map-pin-150x60.png";s:5:"width";i:150;s:6:"height";i:60;s:9:"mime-type";s:9:"image/png";}}s:10:"image_meta";a:11:{s:8:"aperture";i:0;s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";i:0;s:9:"copyright";s:0:"";s:12:"focal_length";i:0;s:3:"iso";i:0;s:13:"shutter_speed";i:0;s:5:"title";s:0:"";s:11:"orientation";i:0;}}

In the first row, near the beginning you see:
{s:27:"http://yoursitename/xxx/yyy";

s = string
27 = 27 characters
"http://yoursitename/xxx/yyy" - the 27 character long string

If you do a straight 'string replace ' on your database changing yoursitename to newsitename then the plugin isn't goign to work correctly as the new entry will have:
{s:27:"http://newsitename/xxx/yyy";
The plugin will be expecting 27 characters but your string is only 26 characters long. To do a correct string replace you need to update the "27" to "26".
You can use http://pixelentity.com/wordpress-search-replace-domain/ or I use the following plugin: https://wordpress.org/plugins/all-in-one-wp-migration/
 
@rward

I get what u saying,because when i compared the localhost one verses the server. I realised that on the server some of the plugins where gone or incorrect. when i clicked on a page i got a popup asking me something about using the creators content. when i clicked yes it inserted a page builder instead of my visual editors and the content was all wrong,so i'm assuming the "REPLACE" function for the database corrupted the plugins?
 
Top
Sign up to the MyBroadband newsletter
X