[SOLVED] Gallery 2.3.2 - Security Violation

chris_lee
chris_lee's picture

Joined: 2004-07-31
Posts: 6
Posted: Mon, 2014-03-17 09:18

After I migrate the Gallery 2 to new Fedora Linux 19 box, I got following error *after* logon:

Security Violation

The action you attempted is not permitted.

Back to the Gallery

Gallery version : Gallery 2.3.2
PHP version: PHP Version 5.5.9
Webserver: Apache/2.4.7 (Fedora) PHP/5.5.9
Database : mysqlnd 5.0.11-dev - 20120503
Operating system: Fedora 3.13.5-103.fc19.x86_64

Error Log:

[Mon Mar 17 16:33:38.091106 2014] [:error] [pid 2536] PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/gallery2/lib/smarty/Smarty_Compiler.class.php on line 270

Any hints how to fix it?

Regards,
Chris

AttachmentSize
error.jpg8.03 KB
 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Mon, 2014-03-17 11:45

use PHP 5.4.x - i use it for 100s of Gallery2 multisites, works fine

__________________________________________________________
http://boonfaya.com/memories.php

 
chris_lee
chris_lee's picture

Joined: 2004-07-31
Posts: 6
Posted: Tue, 2014-03-18 06:04

Thanks, but difficult to download PHP on Fedora..... I better to upgrade to Gallery 3 instead.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2014-03-18 14:22

Those are two separate issues.

For the first one, security etc, clear your browser cache (cookies etc).

For the second, disable e-deprecated warnings in your php ini file. Search on google if you dont know how to.
--
dakanji.com

 
chris_lee
chris_lee's picture

Joined: 2004-07-31
Posts: 6
Posted: Wed, 2014-03-19 01:29

> For the first one, security etc, clear your browser cache (cookies etc).

Done! I even use other browser, but the same issue appear.

> For the second, disable e-deprecated warnings in your php ini file. Search on google if you dont know how to.

Done! But still show the error.

I finally upgrade to Gallery version 3 to fix the issue :(