sf
I recieve a warning: Warning: is_dir() [function.is-dir]: open_basedir… ← ProblemsSupportA free dictionary/glossary PHP-script Guest  •  Sign In  •  Register a new account

Problem: #kb-r I recieve a warning: Warning: is_dir() [function.is-dir]: open_basedir… (2)

  • Status: Accepted
  • Topic: General topic
  • Applies to: Glossword 1.9.3
  • 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

    The component works otherwise correctly. The problem is with servers 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)

  • Created: , greg.wilczek
  • Modified: , DmitrySh

Comments (2)

    • DmitrySh

    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.

    class.template3.php (14.9 KB)

    • greg.wilczek

    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…)

    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

New comment

Sign In or Register a new account to leave a comment.