dasho2020 / glossword

Automatically exported from code.google.com/p/glossword
0 stars 0 forks source link

problem on shared hosting #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
= What steps will reproduce the problem?
1. Opening the Control Panel
2. Opening a link to the component in front-end
3. Various other screens

= What is the expected output? What do you see instead?
I recieve a warning:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. 
File(/) is not within the allowed path(s): 
(/home/users/fnm/:/usr/lib/php:/usr/local/lib/php:/tmp) in 
/home/users/fnm/public_html/e-
lekcje/components/com_glossword/core/gw_includes/class.template3.php on 
line 470

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. 
File(/home/) is not within the allowed path(s): 
(/home/users/fnm/:/usr/lib/php:/usr/local/lib/php:/tmp) in 
/home/users/fnm/public_html/e-
lekcje/components/com_glossword/core/gw_includes/class.template3.php on 
line 470

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. 
File(/home/users/) is not within the allowed path(s): 
(/home/users/fnm/:/usr/lib/php:/usr/local/lib/php:/tmp) in 
/home/users/fnm/public_html/e-
lekcje/components/com_glossword/core/gw_includes/class.template3.php on 
line 470

= What version of the product are you using?
1.9.3.1, Joomla 1.5.15

= Please provide any additional information below.
The component works otherwise correctly. The problem is with wervers root 
directory, which is beyond my control (I can't change anything about them, 
as I use a shared hosting).

You can see it on:
http://fnm.ehost.pl/e-lekcje/slownik/i

Moreover - the warings disappear after refreshing a page (both in back- and 
front-end)

Original issue reported on code.google.com by greg.wil...@gmail.com on 25 May 2010 at 1:02

GoogleCodeExporter commented 9 years ago
I successfully reproduced it. These warnings may appear on first run and when 
option
`open_basedir` is set in php configuration file.

HTML-template engine checks for an existent directory before to write a compiled
php-files to `joomla/tmp/gw-joomla-tc`

Delete directory `joomla/tmp/gw-joomla-tc` and overwrite file
`/joomla/components/com_glossword/core/gw_includes/class.template3.php`
with attached.

Original comment by dmitry.s...@gmail.com on 25 May 2010 at 11:49

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your answer - the solution works, indeed, but now the script returns 
the 
error of missing files in gw-joomla-tc (which is obvious, as I've removed them, 
however I'd expected that the script would put them there again...)

--code--
Warning: file_put_contents(/home/users/fnm/public_html/e-lekcje/tmp/gw-joomla-
tc/code-items.browse.php) [function.file-put-contents]: failed to open stream: 
No 
such file or directory in /home/users/fnm/public_html/e-
lekcje/components/com_glossword/core/gw_includes/class.template3.php  on line 
495

Original comment by greg.wil...@gmail.com on 26 May 2010 at 8:13

GoogleCodeExporter commented 9 years ago
problem solved - I've created this directory, and CHMODded it to 777;
now it works perfect

(btw: I've done a Polish translation for the component - should I e-mail the 
XML file 
to you?)

Original comment by greg.wil...@gmail.com on 26 May 2010 at 9:26