FEU 3 - Fatal Error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

FEU 3 - Fatal Error

Post by rotezecke »

I tried to install FEU 3.0.3 on 2.2.10 today (PHP 7.2.20 on debian 8), and I get a fatal error before i can even install it. i downloaded the tar ball and expanded the package in module directory; ownership fixed afterwards. After unpacking - but before upgrade (which i cannot get to) - both front and backend give me a white screen. apache arror log:
Cannot redeclare ms_is_cli() (previously declared in /var/www/cmsms/config.php:7) in /var/www/cmsms/config.php on line 7
I do have a function declared in my config file (i tried renaming it) that is used to determine whether CMSMS is called via cmscli or via browser. replacing FEU3 with FEU2.xx puts things back to normal.
Can i not have a custom function declaration in config file any more? Thanks.


----------------------------------------------

Cms Version: 2.2.10

Installed Modules:

CGBlog: 1.15.13
CGExtensions: 1.64.6
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
Captcha: 1.0
DesignManager: 1.1.6
FileManager: 1.6.8
FormBuilder: 0.8.1.6
FrontEndUsers: 2.14.3.4
JM_Forum: 1.1.rc.1
JQueryTools: 1.4.2
LISE: 1.3.1
LISEaccommodationdb: 1.3.1
LISEinstallersdb: 1.3.1
ModuleManager: 2.1.6
Navigator: 1.0.9
News: 2.51.6
RPCTools: 1.0.b.1
Search: 1.51.6


Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: true


Php Information:

phpversion: 7.2.20-2+0~20190725.24+debian8~1.gbp69697c
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals,
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 64M
session_save_path: /var/lib/php/sessions (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 0
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache/2.4.10 (Debian)
Server Api: apache2handler
Server Os: Linux 3.16.0-8-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.62
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/cmsms/tmp (0775)
tmp_cache: /var/www/cmsms/tmp/cache (0755)
templates_c: /var/www/cmsms/tmp/templates_c (0755)
modules: /var/www/cmsms/modules (0775)
uploads: /var/www/cmsms/uploads (0775)
File Creation Mask (umask): /var/www/cmsms/tmp/cache (0755)
config_file: 0777

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FEU 3 - Fatal Error

Post by calguy1000 »

You can have custom functions in your config.php But... you should not assume that the config.php is read only once.

Personally I have done stuff like this on occasion, but I would prefer to use

include_once __DIR__.'mycustom.php';
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Modules/Add-Ons”