Gallery PHP problem.

來源:互聯網
上載者:User
From: http://www.zettai.net/Forums/06/1067798714

Q:
I have installed gallery from gallery.sf.net. I get this warning when I run it... anyone know what might be the problem? Where should I set these variables? " Powered by Gallery v1.4-pl2 Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 "

A:

see Gallery FAQ C18: C.18. Why do I get this warning: Your script possibly relies on a session side-effect which existed until PHP 4.2.3?

In PHP 4.2.3, they made a change to the way that the session code works that results in PHP generating a warning when a session is created. In order to resolve this, we have to update some code in Gallery. This warning has no effect, except that it shows upon screen. You can make it go away by editing your php.ini and setting

session.bug_compat_warn to off

and restart Apache.

If you don't have access to php.ini, add this line to your .htaccess

php_flag session.bug_compat_warn off

This should be fixed in future versions of Gallery.

regards

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.