migrating to another server, block content is lost

migrating to another server, block content is lost

luciano biondo -
回帖数:2
I was having a moodle site made with 1.9 on my production server.

I copied it on my computer, uploaded it to 2.02, made some change and made everything work. Now I wish to put my site on production server.

  • I copied all the files of moodle.2.0.2 by ftp
  • I copied mysql database (by exporting and importing);
  • I copied all the moodledata by ftp;
  • I changed the url by admin/replace.php.

Now, in the production server, all the html blocks content has disappeared. Instead of text there is <.

What can I do?

Luciano

回复luciano biondo

Re: migrating to another server, block content is lost

Colin Fraser -
Documentation writers的头像 Testers的头像

You have been very careful and done everything you could do and it has still gone wrong. mmmThe only thing I can think of is there is a settingon the Server that has interfered with the ability to make the neccessary connections. Have the right permissions been granted? Seems silly but never know... Another issue lies in the database. Assuming your config.php file is accurate, btw, can you be sure that all address changes have been made in the database? Even running the replace.php can miss something.

Go to Site Administration > Plugins > Blocks > Manage blocks

And check to see if the plugin has actually been enabled. Then go and have a look at the database and see fio there is simething there that has been missed...

Sorry I cannot be any more help than this, this is disappointing for you, I am sure.

回复luciano biondo

Re: migrating to another server, block content is lost

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

For anyone else reading this thread, the problem Luciano describes (caused by using admin/replace.php) has been reported in the Moodle Tracker as MDL-25352 and will hopefully be fixed in the next weekly build, available later this week.