1
jlittle
xoopkernel.php bug
  • 2010/3/18 23:28

  • jlittle

  • Just popping in

  • Posts: 2

  • Since: 2010/3/18


In tracing thru the code looking for another problem I came upon what looks like an issue where in the function xos_kernel_Xoops2 the XOOPS and lib paths were not set correctly because there was no slash in front of the "browse.php"

Orig code:
function xos_kernel_Xoops2()
{
$this->paths['XOOPS'] = array(XOOPS_PATH, XOOPS_URL . 'browse.php');
$this->paths['www'] = array(XOOPS_ROOT_PATH, XOOPS_URL);
$this->paths['var'] = array(XOOPS_VAR_PATH, null);
$this->paths['lib'] = array(XOOPS_PATH, XOOPS_URL . 'browse.php');
$this->paths['modules'] = array(XOOPS_ROOT_PATH . '/modules', XOOPS_URL . '/modules');
$this->paths['themes'] = array(XOOPS_ROOT_PATH . '/themes', XOOPS_URL . '/themes');
}

I saw that since the XOOPS_URL had no trailing backslash that it concatenated the browse to the end of the XOOPS_URL causing an incorrect path.

Everywhere else in the code a slash is used in front of the path or file name that is being concatenated to the XOOPS_URL variable.



2
jlittle
strftime problem?
  • 2010/3/18 3:28

  • jlittle

  • Just popping in

  • Posts: 2

  • Since: 2010/3/18


After installing and going to the main page I don't get any anything useful. I turned on debug and got the following:

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in file /class/smarty/Smarty_Compiler.class.php line 400

I had set (and the DB agrees) the timezone to -5 (EST) but it is forcing a -4 timezone.

There is also a problem in that the temp file names can not be found in the xoops_data/caches/smarty_compile directory:

Warning: include(C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/MyHiddenFiles/xoops_data/caches/smarty_compile/http%253A%252F%252Fcs2-<my-server-name-was-here>%253A8080%252F<my-db-name-was-here>%25%25system-default-default^%%22^222^222153D0%%db%3Asystem_block_user.html.php): failed to open stream: No such file or directory in file /class/smarty/Smarty.class.php line 1263

I'm not sure if this is related to the timezone issue or not.

Here is my enviroment:
XOOPS Version: XOOPS 2.4.4
XOOPS Theme: default
XOOPS Template Set: default
PHP Version: 5.3.0
MySQL Version: 5.1.36-community
Server Software: Apache/2.2.11 (Win32) PHP/5.3.0


Any help would be appreciated.

Thankx, Jeff




TopTop



Login

Who's Online

154 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

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

Latest GitHub Commits