1
mmesa
Session problems after a "copy" installation
  • 2005/8/1 8:26

  • mmesa

  • Just popping in

  • Posts: 13

  • Since: 2005/7/28


Hello,

I had a stable XOOPS installation (2.0.13 spanish), but I needed to change the directory, prefix and database. I copied all files to the new directory, I put the right permissions to cache,templates_c and upload directories.I copied the old tables with a new prefix in the new database, and the I changed mainfile.php with the new values.

Now, the site seems to work fine, but it spends much time to load. I activated php debug, and the errors are:

Notice [PHP]: Constant XOOPS_SIDEBLOCK_LEFT already defined in file include/common.php line 44
Notice [PHP]: Constant XOOPS_SIDEBLOCK_RIGHT already defined in file include/common.php line 45
Notice [PHP]: Constant XOOPS_SIDEBLOCK_BOTH already defined in file include/common.php line 46
Notice [PHP]: Constant XOOPS_CENTERBLOCK_LEFT already defined in file include/common.php line 47
Notice [PHP]: Constant XOOPS_CENTERBLOCK_RIGHT already defined in file include/common.php line 48
Notice [PHP]: Constant XOOPS_CENTERBLOCK_CENTER already defined in file include/common.php line 49
Notice [PHP]: Constant XOOPS_CENTERBLOCK_ALL already defined in file include/common.php line 50
Notice [PHP]: Constant XOOPS_BLOCK_INVISIBLE already defined in file include/common.php line 51
Notice [PHP]: Constant XOOPS_BLOCK_VISIBLE already defined in file include/common.php line 52
Notice [PHP]: Constant XOOPS_MATCH_START already defined in file include/common.php line 53
Notice [PHP]: Constant XOOPS_MATCH_END already defined in file include/common.php line 54
Notice [PHP]: Constant XOOPS_MATCH_EQUAL already defined in file include/common.php line 55
Notice [PHP]: Constant XOOPS_MATCH_CONTAIN already defined in file include/common.php line 56
Notice [PHP]: Constant SMARTY_DIR already defined in file include/common.php line 57
Notice [PHP]: Constant XOOPS_CACHE_PATH already defined in file include/common.php line 58
Notice [PHP]: Constant XOOPS_UPLOAD_PATH already defined in file include/common.php line 59
Notice [PHP]: Constant XOOPS_THEME_PATH already defined in file include/common.php line 60
Notice [PHP]: Constant XOOPS_COMPILE_PATH already defined in file include/common.php line 61
Notice [PHP]: Constant XOOPS_THEME_URL already defined in file include/common.php line 62
Notice [PHP]: Constant XOOPS_UPLOAD_URL already defined in file include/common.php line 63
Notice [PHP]: Constant XOOPS_DB_CHKREF already defined in file include/common.php line 69
Notice [PHP]: Constant XOOPS_DB_PROXY already defined in file include/common.php line 80
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 493
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 493
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 493
Notice [PHP]: A session had already been started - ignoring session_start() in file include/common.php line 177

I think the important problems are session problem and constant problems. I deactivated all cache options in preferences, but the problems continue.

Thanks beforehand.

2
bluenova
Re: Session problems after a "copy" installation

Check for white space at the end of common.php and functions.php

3
mmesa
Re: Session problems after a "copy" installation
  • 2005/8/1 8:42

  • mmesa

  • Just popping in

  • Posts: 13

  • Since: 2005/7/28


I checked those files, and there aren't white spaces, these are the ends:

common.php:
} elseif($xoopsUser) {
$xoopsUserIsAdmin = $xoopsUser->isAdmin(1);
}
}
?>

functions.php:
function xoops_trim($text)
{
if (function_exists('xoops_language_trim')) {
return xoops_language_trim($text);
}
return trim($text);
}
?>

As I copied this file from a stable installation, I think the files are not the problem. Thanks again.

Login

Who's Online

241 user(s) are online (203 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits