ECB2 - PHP Fatal error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

ECB2 - PHP Fatal error

Post by AccentAvondschool »

I use the following ECB2 content block in our template ...

Code: Select all

{$polaroid_image="{content_module module="ECB2" field="file_selector" block="set_image" dir="images/pageimages" filetypes="jpg,gif,png" label="Selecteer foto" excludeprefix="thumb_"}" scope=global}
To be sure I've changed this to the code in the example ..

Code: Select all

{content_module module="ECB2" field="file_selector" block="test10" dir="images" filetypes="jpg,gif,png" excludeprefix="thumb_"} 
I still get the following error:

Code: Select all

mod_fcgid: stderr: PHP Fatal error:  Uncaught TypeError: Argument 5 passed to cge_dir::recursive_glob() must be of the type integer, string given, called in /httpdocs/modules/ECB2/lib/class.ecb2_tools.php on line 254 and defined in /httpdocs/modules/CGExtensions/lib/class.cge_dir.php:276
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /httpdocs/modules/ECB2/lib/class.ecb2_tools.php(254): cge_dir::recursive_glob('/var/www/vhosts', Array, 'FILES', Array, '')
mod_fcgid: stderr: #1 /httpdocs/modules/ECB2/lib/class.ecb2_tools.php(96): ecb2_tools->get_file_selector()
mod_fcgid: stderr: #2 /httpdocs/modules/ECB2/ECB2.module.php(100): ecb2_tools->get_content_block_input()
mod_fcgid: stderr: #3 /httpdocs/lib/classes/contenttypes/Content.inc.php(605): ECB2->GetContentBlockFieldInput('test10', NULL, Array, false, Object(Content))
mod_fcgid: stderr: #4 /httpdocs/lib/classes/contenttypes/Content.inc.php(642): Cont in /httpdocs/modules/CGExtensions/lib/class.cge_dir.php on line 276
----------------------------------------------

Cms Version: 2.2.11

Installed Modules:

AdminSearch: 1.0.4
CGBlog: 1.15.13
CGCalendar: 2.6.2
CGContentUtils: 2.5
CGExtensions: 1.64.8
CGHTML2PDF: 1.0.3
CGJobMgr: 1.3.6
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CGSnapshot: 1.4
CGSocialBlaster: 1.1
CGUserDirectory: 1.5.1
CMSContentManager: 1.1.8
CMSMailer: 6.2.14
Captcha: 1.0
CmsJobManager: 0.1.3
DesignManager: 1.1.6
ECB2: 1.5.3
FAQ: 2.0.3
FEU_PMs: 1.0.0
FEupload: 0.3.1
FileManager: 1.6.8
FilePicker: 1.0.4.1
FormBuilder: 0.8.1.6
FrontEndUsers: 3.1.3
Gallery: 2.3.3
JQueryTools: 1.4.2
ListIt2: 1.4.1
ListIt2ListIt2Original: 1.4.1
ListIt2ListIt2team: 1.4.1
ListIt2XDefs: 1.2
ListIt2team: 1.4.1
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.7
NMS: 2.13.3
Navigator: 1.0.9
News: 2.51.6
Search: 1.51.7
ThemeManager: 1.1.8


Config Information:

php_memory_limit:
max_upload_size: 512000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale: nl_NL
set_names: true
timezone: Europe/Amsterdam
permissive_smarty: false


Php Information:

phpversion: 7.2.22
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
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: 2048M
max_execution_time: 600
register_globals: Off (False)
output_buffering: 4096
disable_functions: opcache_get_status
open_basedir: /var/www/vhosts/accentavondschool.nl/:/tmp/
test_remote_url: Success
file_uploads: On (True)
post_max_size: 512M
upload_max_filesize: 512M
session_save_path: No check because open basedir active
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: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.9.0-8-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/vhosts/accentavondschool.nl/httpdocs/tmp (0755)
tmp_cache: /var/www/vhosts/accentavondschool.nl/httpdocs/tmp/cache (0755)
templates_c: /var/www/vhosts/accentavondschool.nl/httpdocs/tmp/templates_c (0755)
modules: /var/www/vhosts/accentavondschool.nl/httpdocs/modules (0755)
uploads: /var/www/vhosts/accentavondschool.nl/httpdocs/uploads (0755)
File Creation Mask (umask): /var/www/vhosts/accentavondschool.nl/httpdocs/tmp/cache (0755)
config_file: 0444

----------------------------------------------
Regards,

Accent Avondonderwijs
René
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

Re: ECB2 - PHP Fatal error

Post by AccentAvondschool »

And allmost the same errors on a clean CMSMS install ...

Code: Select all

{content_module module="ECB2" field="file_selector" block="test10" dir="images" filetypes="jpg,gif,png" excludeprefix="thumb_"}

Code: Select all

mod_fcgid: stderr: PHP Fatal error:  Uncaught TypeError: Argument 5 passed to cge_dir::recursive_glob() must be of the type integer, string given, called in .../modules/ECB2/lib/class.ecb2_tools.php on line 254 and defined in .../modules/CGExtensions/lib/class.cge_dir.php:276
 mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 .../modules/ECB2/lib/class.ecb2_tools.php(254): cge_dir::recursive_glob('/var/www/vhosts...', Array, 'FILES', Array, '')
mod_fcgid: stderr: #1 .../modules/ECB2/lib/class.ecb2_tools.php(96): ecb2_tools->get_file_selector()
mod_fcgid: stderr: #2 .../modules/ECB2/ECB2.module.php(100): ecb2_tools->get_content_block_input()
mod_fcgid: stderr: #3 .../lib/classes/contenttypes/Content.inc.php(605): ECB2->GetContentBlockFieldInp in .../modules/CGExtensions/lib/class.cge_dir.php on line 276
----------------------------------------------

Cms Version: 2.2.10

Installed Modules:

AdminSearch: 1.0.4
CGBetterForms: 1.10.2
CGCalendar: 2.6.2
CGExtensions: 1.64.8
CGSimpleSmarty: 2.2.1
CGSnapshot: 1.4
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
CmsJobManager: 0.1.3
DesignManager: 1.1.6
ECB2: 1.5.3
FileManager: 1.6.8
FilePicker: 1.0.4
FrontEndUsers: 3.1.4
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.6
Navigator: 1.0.9
News: 2.51.6
Search: 1.51.6

Config Information:

php_memory_limit:
max_upload_size: 512000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Amsterdam
permissive_smarty: false

Php Information:

phpversion: 7.2.22
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
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: 2048M
max_execution_time: 600
register_globals: Off (False)
output_buffering: 4096
disable_functions: opcache_get_status
test_remote_url: Success
file_uploads: On (True)
post_max_size: 512M
upload_max_filesize: 512M
session_save_path: No check because open basedir active
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: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.9.0-8-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------
Regards,

Accent Avondonderwijs
René
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 180
Joined: Sun Sep 05, 2010 6:11 am
Location: Sheffield, UK

Re: ECB2 - PHP Fatal error

Post by chrisbt »

Hi, I've just spotted this post. I'm the developer (now) looking after ECB2. I'll get this fixed ASAP.
User avatar
AccentAvondschool
Forum Members
Forum Members
Posts: 41
Joined: Sun May 08, 2016 5:36 am
Location: Rotterdam NL

Re: ECB2 - PHP Fatal error

Post by AccentAvondschool »

Hi Kiwi Chris,

Thx for your response and looking forward to the update.
Regards,

Accent Avondonderwijs
René
Locked

Return to “Modules/Add-Ons”