Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2010-02-08 16:24:24

nile
Member
Registered: 2009-05-13
Posts: 21

Error on my page

Suddenly this error comes on the top of my page:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(./language/index.php/iso.txt) is not within the allowed path(s): (/customers/lj-photo.dk/lj-photo.dk:/var/www/diagnostics:/usr/share/php) in /customers/lj-photo.dk/lj-photo.dk/httpd.www/include/functions.inc.php on line 460

Warning: Cannot modify header information - headers already sent by (output started at /customers/lj-photo.dk/lj-photo.dk/httpd.www/include/functions.inc.php:460) in /customers/lj-photo.dk/lj-photo.dk/httpd.www/include/page_header.php on line 98

The message disappear when I am logged in as an administrator.

page: www.lj-photo.dk

Any suggestions?

Regards
Nile.

Offline

#2 2010-02-08 17:13:38

ddtddt
Piwigo Team
Location: Quetigny - France
Registered: 2007-07-27
Posts: 3691

Re: Error on my page

Have you deleted a translation of your site?


Piwigo.com beta was launched on June 30th 2009. Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it

Offline

#3 2010-02-08 17:51:08

nile
Member
Registered: 2009-05-13
Posts: 21

Re: Error on my page

No, they should all be there.
I have tried to change the language, but whitout any luck.
But as I wrote, when I am loged into the page there are no errors.

Offline

#4 2010-02-08 18:01:02

ddtddt
Piwigo Team
Location: Quetigny - France
Registered: 2007-07-27
Posts: 3691

Re: Error on my page

You just installed a new plugin?

A new amendment?


Piwigo.com beta was launched on June 30th 2009. Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it

Offline

#5 2010-02-08 18:48:27

tosca
Piwigo Team
Location: Cévennes (France)
Registered: 2006-09-23
Posts: 567
Website

Re: Error on my page

I did some searches on the net  about open_basedir restriction.
Apparently, it could be related to a file permission problem or some php settings; if you've not done anything special, your provider might have enforced some new security rules.

Last edited by tosca (2010-02-08 18:49:52)

Offline

#6 2010-02-08 19:25:29

nile
Member
Registered: 2009-05-13
Posts: 21

Re: Error on my page

No I have not installed any new plugin.

Offline

#7 2010-02-08 19:27:34

nile
Member
Registered: 2009-05-13
Posts: 21

Re: Error on my page

Quote:
I did some searches on the net  about open_basedir restriction.
Apparently, it could be related to a file permission problem or some php settings; if you've not done anything special, your provider might have enforced some new security rules.

I don't think so.
And still when I am logged in, there are no errors.

Offline

#8 2010-02-08 22:07:58

mathiasm
Piwigo Team
Registered: 2006-02-06
Posts: 2637

Re: Error on my page

The path mentions: /customers/lj-photo.dk/lj-photo.dk
There is a problem with the mentioned file, it contains 2 filenames: ./language/index.php/iso.txt

Ok, got it.
Backup functions.inc.php
Line 460 of functions.inc.php, change 
if (!is_link($path) and file_exists($path.'/iso.txt'))
into
if (!is_link($path) and is_dir($path) and file_exists($path.'/iso.txt'))

And tell us if it is better.

Regards
Mathias

Offline

#9 2010-02-08 22:11:42

ddtddt
Piwigo Team
Location: Quetigny - France
Registered: 2007-07-27
Posts: 3691

Re: Error on my page

Can you check the file permissions iso.txt

Can you install [extension by VDigital] Language Switch for test


Piwigo.com beta was launched on June 30th 2009. Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it

Offline

#10 2010-02-09 15:58:07

nile
Member
Registered: 2009-05-13
Posts: 21

Re: Error on my page

Great.
mathiasm - you got the sullution.

With your change the error is gone.

Thank you very much for your help.

Best Regards
Nile

Offline

#11 2010-03-03 09:02:13

Stisse Hedlund
Guest

Re: Error on my page

Also got same error as u did Nile and a few more resulting in login failure, this was after my provider did an update from php5.2 to php5.3

And after using mathiasm solution it worked like a charm, thx :)

PS
Got the same error again after upgrading to latest release 2.0.9 so same solution was applied again..

#12 2010-03-05 13:14:50

Jarle
Guest

Re: Error on my page

Tried the same solution, but still got some errors.
  Take alook here;
  http://tjelmen.net/bilder/index.php?

  thanks
  jarle

#13 2010-03-05 20:14:37

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 9518
Website

Re: Error on my page

Jarle wrote:

Tried the same solution, but still got some errors.
  Take alook here;
  http://tjelmen.net/bilder/index.php?

  thanks
  jarle

nice photos Jarle.

In your gallery, there is:

Code:

<!-- Minus AutoDato -->

at the beginning of the output HTML and this produce errors in the code :-/

I don't see the iso.txt problem :-/ and I haven't been able to reproduce it so far


Piwigo 2.1 available on Piwigo.com. Last blog post: Piwigo 2.1.2 fixes many bugs… (June 30th, 2010)

Offline

#14 2010-03-05 21:35:08

Jarle
Guest

Re: Error on my page

Thank you very much.
  Got rid of the auto-date thing, and all is well again !

  thanks again.

  jarle

#15 2010-03-21 14:22:11

cold
Guest

Re: Error on my page

thank you very much..


something changed my password in mysql.inc.php and added 5 blanks ...

thanks for the great support :)

Board footer

Powered by FluxBB