1
Cozzie
Changed domain but meta data showing old domain
  • 2011/2/28 10:22

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi guys

I've had to change my domain name (hosting still the same), so I've updated mainfile.php and cleared the caches, all is ok except my meta data is still linking to the old domain. I've tried everything but can't change the meta links - can anyone help? Its driving me mad because it means the theme is not displaying.

Also when I go to admin area I just get a blank page but I'm guessing this is related to the meta problem

2
Cozzie
Re: Changed domain but meta data showing old domain
  • 2011/3/2 16:34

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi guys, can anyone help? its driving me mad, I can't figure out why the data in <head> is still showing my old URL, if its not controlled by the mainfile.php does anyone know where it is?

Thanks

3
Anonymous
Re: Changed domain but meta data showing old domain
  • 2011/3/2 17:45

  • Anonymous

  • Posts: 0

  • Since: 0


Assuming you mean the meta data that appears in the <head> sections of your pages' code (e.g. when viewing the source code via your browser), have you tried:

Admin>Preferences>Meta Tags and Footer?

Otherwise it'll be set in a module somewhere. For certain it'll be in the database rather than in mainfile.php or any other files.

HTH

4
redheadedrod
Re: Changed domain but meta data showing old domain

Three places to check this...

mainfile.php, there is a place to state the name of the site...


Main preferences in the admin panel. There could be settings in the admin panel so check them all to make sure you have changed any settings that may be there.

Also check protector and see if it has any settings saved. The blank pages are likely protector seeing an attack because of the new URL and you may need to reset it.

Are you using URL Rewrite? If so you need to also look at the control files as well.

If this was just a domain change and not a host swap you may also need to check your server settings to make sure everything lines up well.


Rodney

5
Cozzie
Re: Changed domain but meta data showing old domain
  • 2011/3/5 15:42

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Thanks a lot guys!

I've got the site's theme displaying by going in to xoops_data and clearing the files (I'd forgotten caches are now stored in trust path rather than cache and templates_cache folders.

BUT I still can't access any admin pages. When I check the html source I can see that the <head> code is not fully downloaded (see below) and so I'm just getting empty pages for all admin pages. The weird thing is that when I use debug mode it shows no errors.

Can you tell me where in protector I need to be looking?

Thanks!!!

le="color: #000000"><?php <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><script src="http://1.2.3.4/bmi-int-js/bmi.js" language="javascript"></script><meta http-equiv="content-language" content="en" /><title>My Site Administration</title> <meta name="author" content="XOOPS" /><meta name="copyright" content="XOOPS &copy; 2001-2011" /><meta name="generator" content="XOOPS" /><link rel="shortcut icon" type="image/ico" href="http://site.org/favicon.ico" /><script type="text/javascript" src="http://site.org/include/xoops.js"></script> <script type="text/javascript">function xoopsVariableDefined(variable) { try { var isDefined = (eval(variable) != "undefined") } catch(e) { var isDefined = false } return isDefined; } function xoopsToggleDisplay(id) { if (!xoopsVariableDefined("xoopsToggleLabel")) { var toggle_innerHTML = new Array("&raquo;", "&laquo;"); } else { var toggle_innerHTML = xoopsToggleLabel; } var elestyle = xoopsGetElementById(id).style; var label = xoopsGetElementById(id+"-label"); if (elestyle.display == "none") { elestyle.display = "block"; label.innerHTML = toggle_innerHTML[1]; } else { elestyle.display = "none"; label.innerHTML = toggle_innerHTML[0]; } } </script> <link rel="stylesheet" type="text/css" media="all" href="http://site.org/xoops.css" /><link rel="stylesheet" type="text/css" media="all" href="http://site.org/modules/system/class/gui/default/css/style.css" /><link rel="stylesheet" type="text/css" media="all" href="http://site.org/modules/system/class/gui/default/css/en.css" /><link rel="stylesheet" type="text/css" media="all" href="http://site.org/language/english/style.css" /><div id="xo-logger-output"><div id='xo-logger-tabs'><a href='javascript:xoSetLoggerView("none")'>None</a> <a href='javascript:xoSetLoggerView("")'>All</a> <a href='javascript:xoSetLoggerView("errors")'>errors (2)</a> <a href='javascript:xoSetLoggerView("queries")'>queries (7)</a> <a href='javascript:xoSetLoggerView("blocks")'>blocks (0)</a> <a href='javascript:xoSetLoggerView("extra")'>extra (2)</a> <a href='javascript:xoSetLoggerView("timers")'>timers (3)</a></div><table id="xo-logger-errors" class="outer"><tr><th>Errors</th></tr><tr><td class='even'>Notice: Undefined variable: query_string in file /modules/xlanguage/include/functions.php line 244<br /></td></tr><tr><td class='odd'>Notice: Undefined variable: query_string in file /modules/xlanguage/include/functions.php line 244<br /></td></tr></table><table id="xo-logger-queries" class="outer"><tr><th>Queries</th></tr><tr class="even"><td>SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC</td></tr><tr class="odd"><td>SELECT sess_data, sess_ip FROM session WHERE sess_id = '40ec53938ad2bf2e01a237b287326e3b'</td></tr><tr class="even"><td>SELECT * FROM users WHERE uid = '1'</td></tr><tr class="odd"><td>SELECT * FROM group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))</td></tr><tr class="even"><td>SELECT * FROM modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC</td></tr><tr class="odd"><td>SELECT * FROM groups</td></tr><tr class="even"><td>SELECT * FROM groups</td></tr><tr class="foot"><td>Total: <span style="color:#ff0000;">7</span> queries</td></tr></table><table id="xo-logger-blocks" class="outer"><tr><th colspan="2">Blocks</th></tr><tr class="foot"><td>Total: <span style="color:#ff0000;">0</span> blocks</td></tr></table><table id="xo-logger-extra" class="outer"><tr><th colspan="2">Extra</th></tr><tr><td class="even"><strong>Included files:</strong> 77 files</td></tr><tr><td class="odd"><strong>Memory usage:</strong> 5924704 bytes</td></tr></table><table id="xo-logger-timers" class="outer"><tr><th colspan="2">Timers</th></tr><tr><td class="even"><strong>XOOPS</strong> took <span style="color:#ff0000;">0.073</span> seconds to load.</td></tr><tr><td class="odd"><strong>XOOPS Boot</strong> took <span style="color:#ff0000;">0.032</span> seconds to load.</td></tr><tr><td class="even"><strong>Module init</strong> took <span style="color:#ff0000;">0.041</span> seconds to load.</td></tr></table></div><script type="text/javascript">function xoLogCreateCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function xoLogReadCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function xoLogEraseCookie(name) { createCookie(name,"",-1); } function xoSetLoggerView( name ) { var log = document.getElementById( "xo-logger-output" ); if ( !log ) return; var i, elt; for ( i=0; i!=log.childNodes.length; i++ ) { elt = log.childNodes[i]; if ( elt.tagName && elt.tagName.toLowerCase() != 'script' && elt.id != "xo-logger-tabs" ) { elt.style.display = ( !name || elt.id == "xo-logger-" + name ) ? "block" : "none"; } } xoLogCreateCookie( 'XOLOGGERVIEW', name, 1 ); } xoSetLoggerView( xoLogReadCookie( 'XOLOGGERVIEW' ) ); </script> <script language="javascript"><!-- bmi_SafeAddOnload(bmi_load,"bmi_orig_img",0);//--> </script>

6
Wera90
Re: Changed domain but meta data showing old domain
  • 2011/8/10 7:56

  • Wera90

  • Just popping in

  • Posts: 1

  • Since: 2011/8/10


Hello guys)) I have the similiar problems with the admin pages but there is no any error. what can it be????

7
Mamba
Re: Changed domain but meta data showing old domain
  • 2011/8/10 8:08

  • Mamba

  • Moderator

  • Posts: 11530

  • Since: 2004/4/23


What did you do before it started? I assume that before everything was OK, correct?
What XOOPS version are you using? What admin theme?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs