1
russtik
URL's broken in modules after migration
  • 2008/4/30 12:31

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Hi,

I've just migrated a XOOPS sites from one cpanel server to another using it's 'transfer account' function. Initially all seemed fine then I realised the following:

- images were broken in Xcgallery.
- clicking on a forum (CBB) topic resulted in error 404.
- clicking on a Smartfaq item resulted in error 404.
+ some more...

After closer inspection it seems that at module level URL's are being created minus two directories deep (e.g. missing the ../modules/newbb/.. bit).

Old server:
PHP 4.4.5
Mysql 4.1.22-standard

New server:
PHP 5.2.5
Mysql 5.0.51

I installed a vanilla copy of XOOPS on the new server, stuck the CBB module and it worked fine...

Not sure what to do now??? I dumped the live site database and imported it into the vanilla XOOPS install but that resulted in a white page and no error messages (with debug on and show errors on in php.ini).

2
trabis
Re: URL's broken in modules after migration
  • 2008/4/30 12:34

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Have you made the correct changes in mainfile.php?

3
russtik
Re: URL's broken in modules after migration
  • 2008/4/30 12:37

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


I assume you mean the XOOPS_ROOT_PATH? Yes I updated that.

4
Peekay
Re: URL's broken in modules after migration
  • 2008/4/30 18:42

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


If any absolute paths used by module configs or images are wrong after transferring a site, you'll need to export the site DB as a SQL file using PHPMyAdmin, do a search-and-replace to change the paths, drop the DB tables on the server then re-import the SQL file.

You can actually do the search-and-replace in PHPMyAdmin if you are confident using SQL statements, but I do it the coward's way.
A thread is for life. Not just for Christmas.

5
Catzwolf
Re: URL's broken in modules after migration
  • 2008/4/30 19:50

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Also, I may wish to add that you should empty the cache and template_c folders. XGalley has a habit of storing cache files in these folders and that may not help either.

6
Alex_Grey
Re: URL's broken in modules after migration
  • 2008/4/30 19:58

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


*Note. CBB has some files in the cache folder that store the permission settings for the forums and categories.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Login

Who's Online

46 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 46


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits