PEAK XOOPS - Case sensitive module folder name in englishin japanese

Case sensitive module folder name

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/1/24 22:16
pcsmaes  二等兵 From: Europe  Posts: 1
Config: Windows XP 5.1 SP2, Xoops 2.0.16 FR, php 4.3.10, mySQL 4.1.9, piCal 0.89

Symptom : The skin folder is not found:
include/patTemplate.php line 435 :
"Couldn't open file F:\...\piCal\images\\block_monthly.tmpl.html for reading!"
As you can see the skin folder name "default" is missing, while it is correctly specified in the preferences.

Diagnostic : include/read_configs.php line 10 :
$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
This function returns "pical" in $mydirname, while the module directory name is "piCal" ( as found in piCal-0.8.zip )
As a consequence, the SQL query of line 23 returns no module id ...

Solution : I (uninstalled, then ) renamed the module dirname from piCal to pical (then reinstalled) and everythin works fine .

Thanks anyway for this very powerful module.

Pierre.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/1/25 4:16
GIJOE  先任軍曹   Posts: 4110
hmmm.
It sounds curious.
In my local environment(WindowsXP+Apache),
basename(dirname(__FILE__)) returns piCal instead of pical.

Anyway, I'll modify the line

from:
	$rs = $xoopsDB->query( "SELECT mid FROM ".$xoopsDB->prefix('modules')." WHERE dirname='$mydirname'" ) ;

to:
	$rs = $xoopsDB->query( "SELECT mid FROM ".$xoopsDB->prefix('modules')." WHERE dirname LIKE '$mydirname'" ) ;
Votes:3 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!