Image block browse button disappeared

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Image block browse button disappeared

Post by Torpedine »

Hi everybody, I upgraded to the latest release core and modules of a CMSMS installation I'm working with.
I have in some templates a list of content_image block that let the user choose the images he want displayed on page.
After the upgrade the browse buttons un the admin for the image blocks disappeared.

Can somebody help me? Thanks in advance

----------------------------------------------
Cms Version: 2.2.15
Installed Modules:
AdminSearch: 1.0.5
CGContentUtils: 2.5.4
CGExtensions: 1.65.2
CGSimpleSmarty: 2.2.1
CMSContentManager: 1.1.9
CMSMailer: 6.2.14
CmsJobManager: 0.1.3
DesignManager: 1.1.9
FileManager: 1.6.12
FilePicker: 1.0.5
FormBuilder: 1.1
Gallery: 2.4.2
LISE: 1.4.2
LISEBlocchi: 1.4.2
LISECitazioni: 1.4.2
LISEReferenze: 1.4.2
LISEmodulimenu: 1.4.2
MenuManager: 1.50.3
MetaMax: 2.1.7
MicroTiny: 2.2.5
MleCMS: 2.0-beta2
ModuleManager: 2.1.8
Navigator: 1.0.9
News: 2.51.11
Search: 1.52
SitemapMgr: 1.6.1
Widgets: 1.3

Config Information:
php_memory_limit:
max_upload_size: 40000000
url_rewriting: internal
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Rome
permissive_smarty: false

Php Information:
phpversion: 7.2.34-10+0~20210209.54+debian9~1.gbpc2b67f
md5_function: On (Vero)
json_function: On (Vero)
gd_version: 2
tempnam_function: On (Vero)
magic_quotes_runtime: Off (Falso)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: Nessuna differenza di tempo trovata
test_db_timedifference: Nessuna differenza di tempo trovata
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 60
register_globals: Off (Falso)
output_buffering: 8192
disable_functions: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, system, exec, shell_exec, passthru, error_log, ini_alter, dl, pfsockopen, openlog, syslog, readlink, symlink, link, leak, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, pcntl_exec
open_basedir: /tmp:/var/tmp:/usr/share/php:/home/web/www.tasteoftuscanytravel.com/www
test_remote_url: Successo
file_uploads: On (Vero)
post_max_size: 40M
upload_max_filesize: 40M
session_save_path: Nessun controllo perchè open basedir è attivo
session_use_cookies: On (Vero)
xml_function: On (Vero)
xmlreader_class: On (Vero)
check_ini_set: On (Vero)
curl: On

Performance Information:
allow_browser_cache: On (Vero)
browser_cache_expiry: 60
php_opcache: On (Vero)
smarty_cache: Off (Falso)
smarty_compilecheck: Off (Falso)
auto_clear_cache_age: On (Vero)
Server Information:
Server Software: Apache
Server Api: fpm-fcgi
Server Os: Linux 4.9.0-14-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.48
Server Db Grants: Ho trovato una dichiarazione "GRANT ALL" che sembra essere adatta

Permission Information:
tmp: /home/web/www.tasteoftuscanytravel.com/www/new/tmp (0750)
tmp_cache: /home/web/www.tasteoftuscanytravel.com/www/new/tmp/cache (0750)
templates_c: /home/web/www.tasteoftuscanytravel.com/www/new/tmp/templates_c (0750)
modules: /home/web/www.tasteoftuscanytravel.com/www/new/modules (0750)
uploads: /home/web/www.tasteoftuscanytravel.com/www/new/uploads (0750)
Maschera di creazione file (umask): /home/web/www.tasteoftuscanytravel.com/www/new/tmp/cache (0750)
config_file: 0755
----------------------------------------------
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Image block browse button disappeared

Post by DIGI3 »

Does the file picker not open at all, or it opens but there's no 'upload' button (which probably should be relabeled as 'browse')?

If it's the former, I'd guess mod_security. If the latter, possibly a browser cache issue.
Not getting the answer you need? CMSMS support options
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Image block browse button disappeared

Post by Torpedine »

The file picker works as advertised. Every button is in place...

From my domain control panel PHP ModSecurity is deactivated

error.log reports:

[Wed Feb 10 17:11:14.697747 2021] [proxy_fcgi:error] [pid 23582:tid 139836124022528] [client 95.253.51.27:49430] AH01071: Got error 'PHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\nPHP message: PHP Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424\n', referer: https://www.tasteoftuscanytravel.com/ne ... scana.html
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Image block browse button disappeared

Post by DIGI3 »

I guess I don't know what's missing then. {content_image} launches the filepicker, and all buttons are there - what is the browse button you're referring to?

Your error log isn't helpful when disabled.
Not getting the answer you need? CMSMS support options
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Image block browse button disappeared

Post by Torpedine »

I misunderstood. Thi file picker in the admin tab is not visible. I'll attach an image to explain
Schermata 2021-02-10 alle 17.21.59.png
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Image block browse button disappeared

Post by Torpedine »

also, abilitating debug mode on the frontend it shows several of this errors:

Warning: error_log() has been disabled for security reasons in /home/web/www.tasteoftuscanytravel.com/www/new/li ... ctions.php on line 424

what does it mean?

My provider's assistance say that "error_log()" is disabled on their servers
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Image block browse button disappeared

Post by DIGI3 »

Ok that's more clear. I did a few tests and can't recreate it, so likely it's something unique to your install/server. Try the following:

-cmsms cache clear
-incognito mode
-different browser
-different user account (make sure the user has file upload permissions)
-check the console (F12)
-inspect one of the inputs to see if the button is generated but hidden for some reason. Only the Clear button should be hidden:

Code: Select all

<div class="cmsfp_cont">
    <input type="text" name="foo" value="" data-cmsfp-instance="i602409d4adbc3" size="80" readonly="readonly" class="cmsfp cmsfp_elem">
    <button class="cmsfp cmsfp-choose">Choose...</button>
    <button class="cmsfp cmsfp_clear" title="Clear" style="display: none;">Clear</button>
</div>
Not getting the answer you need? CMSMS support options
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Image block browse button disappeared

Post by Torpedine »

console reports some identical errors

moduleinterface.php?mact=CMSContentManager,m1_,admin_editcontent,0&__c=e8f46deb1232f7a9a0b&m1_content_id=405:509 Uncaught SyntaxError: Unexpected identifier

reading the source, there is some JS but no buttons. It seems the JS fails to generate the filepicker button (image attached)
Schermata 2021-02-10 alle 17.55.55.png
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Image block browse button disappeared

Post by DIGI3 »

If you've for sure ruled out browser cache (always test in a new, clean incognito session after closing all other incognito sessions), then it's an ID conflict somewhere. Comment out content blocks, image blocks, etc until you can make it work, then when you've determined which block is causing it you should be able to diagnose from there. If that doesn't work, create a new page template with just {content} and one {content_image} block and add things back in until the problem arises.
Not getting the answer you need? CMSMS support options
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Image block browse button disappeared

Post by Torpedine »

I tried a copy of the template with only one image block, but the problem remains...
Post Reply

Return to “CMSMS Core”