11
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.



12
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.



13
mmesa
Messages from php debugger
  • 2005/7/28 7:32

  • mmesa

  • Just popping in

  • Posts: 13

  • Since: 2005/7/28


Hello,

I have activated the php debugger, and I obtain hundreds of messages, by example:

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 variables should be assigned by reference in file class/database/mysqldatabase.php line 236
Notice [PHP]: Only variable references should be returned by reference in file class/database/mysqldatabase.php line 383

The displayed files are many, the directories are: class, include, kernel...

The XOOPS version is 2.0.13 in spanish language. When these messages are displayed at begin of page, XOOPS works fine except the fonts are bigger. If the messages only are displayed below page the fonts are ok.

Can anyone helps me?

Thanks,




TopTop
« 1 (2)



Login

Who's Online

164 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits