Forum

Thread tagged as: Question

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
Dave C

Dave C 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I can't reproduce that here. Is there anything else you can tell me?

Dave C

Dave C 0 points

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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get any errors in your browser console?

Dave C

Dave C 0 points

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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have any sort of ad blocker installed?

Dave C

Dave C 0 points

Firefox yes, Chrome no.

Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Dave C

Dave C 0 points

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.

Dave C

Dave C 0 points

I haven't tried Windows, but I realise that in php_error_log I'm getting

PHP Notice:  Undefined index: bucket in ****/httpdocs/perch/core/apps/assets/async/get-assets/index.php on line 56

when 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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does it make a difference if you enable the setting to enforce bucket restrictions?

Dave C

Dave C 0 points

Sorry is this a setting for config.php? I don't see it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, it's in Settings in the control panel.

Dave C

Dave C 0 points

It works! I ticked "Enforce bucket restrictions on content". Sorry if it's a dunce question but what does this do?

Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Dave C

Dave C 0 points

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.