Forum
Picture and File buttons in Markitup no longer work
Hi, I updated my dev machine to Runway 3.0.10 from 3.0.4. and I'm finding that the Picture and File buttons in Markitup no longer work -the buttons don't respond and the assets/upload interface doesn't appear. The only thing that's changes is the Runway version. Thanks
<perch:content id="body_content" type="textarea" size="l" editor="markitup" textile="true" html="true" label="Text block" help="Paste regular body content here." />
Diagnostics:
Perch Runway: 3.0.10, PHP: 7.1.4, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.5.1), perch_forms (1.9), perch_members (1.6.1)
App runtimes: <?php $apps_list = [ 'perch_forms', 'perch_blog', 'perch_members', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/dave/****/httpdocs/perch
PERCH_CORE: /home/dave/****/httpdocs/perch/core
PERCH_RESFILEPATH: /home/dave/****/httpdocs/perch/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: dev.****
DOCUMENT_ROOT: /home/dave/****/httpdocs
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
I can't reproduce that here. Is there anything else you can tell me?
I've wiped my dev machine (Ubuntu MATE 16.04, 64bit) and started again (with 17.04). I've tried both Firefox and Chrome and am getting the same issue.
On my old install, when I tried 3.0.9, the problem wasn't happening.
Do you get any errors in your browser console?
Nothing in browser consoles -Chrome 61.0.3163.91 and Firefox 55.0.2 (64-bit). All the buttons (Heading etc.) work as normal apart from Picture and File.
Do you have any sort of ad blocker installed?
Firefox yes, Chrome no.
Does that make a difference?
I can't reproduce it here, and nothing you're telling me points to any sort of cause or line of enquiry.
It behaves the same in both browsers -those two buttons don't bring up the assets "window"/lightbox.
Ah okay. Soon as I can I'll try on Windows 10.
I haven't tried Windows, but I realise that in
php_error_log
I'm gettingwhen clicking on the File and Picture buttons.
To upgrade Runway 3.0.10, I deleted
core/
and replaced it with the new version -that's the only thing that's changed.Does it make a difference if you enable the setting to enforce bucket restrictions?
Sorry is this a setting for config.php? I don't see it.
No, it's in Settings in the control panel.
It works! I ticked "Enforce bucket restrictions on content". Sorry if it's a dunce question but what does this do?
When you set
bucket="whatever"
on a file or image field type, Perch enforces that as the only allowable option rather than taking it as a suggestion for the bucket to select first.Ah okay. As far as I can see that doesn't pose a problem for our site so I'll use it. Thanks for your help.