Forum
Buckets not working in Runway?
I am trying to get buckets working in Runway 2.7.3
I am not sure if it's my configuration or Runway. I get this error in the CMS
Work Item Image
Fatal error: Call to a member function initialise() on a non-object in /var/sites/#/#/public_html/2014/site_admin/core/lib/PerchFieldTypes.class.php on line 685
buckets,php looks like this:
<?php
return array(
'imghome' => array(
'web_path' => '/assets/img/home',
'file_path' => '/var/sites/#/#/public_html/2014/assets/img/home'
)
);
?>
I have also tried....
<?php
return array(
'imghome' => array(
'web_path' => '/2014/assets/img/home',
'file_path' => '/var/sites/#/#/public_html/2014/assets/img/home'
)
);
?>
config.php has this:
define('PERCH_LOGINPATH', '/2014/site_admin');
define('PERCH_PATH', str_replace(DIRECTORY_SEPARATOR.'config', '', dirname(__FILE__)));
define('PERCH_CORE', PERCH_PATH.DIRECTORY_SEPARATOR.'core');
define('PERCH_RESFILEPATH', PERCH_PATH . DIRECTORY_SEPARATOR . 'resources');
define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');
define('PERCH_HTML5', true);
define('SITE_PATH', '/var/sites/#/#/public_html/2014');
the template has this:
<img src="<perch:content type="image" id="image" label="Work Item Image" bucket="imghome" />" alt="<perch:content type="text" id="alt" label="Image Description" required="true" title="true" />" />
If I remove [bucket="imghome"]
from the template, everything works fine albeit the image gets uploaded to the default 'resources' folder instead.
Help!
Does anything change if you add
to you bucket definition?
Hi Drew,
I still get the same Fatal Error
Can you show me your diagnostics report?
Here you go, I've hashed some of the sensitive data.
It's really hard to say, especially as you won't share full information with me. Is there anything in those hashed areas that might cause an issue?
Obviously this isn't generally broken for everyone, so it has to be something specific to the environment.
Drew, I can provide that info privately
Am I ok to email you directly with the diagnostics report attached?
Sure, please do.
Thanks Drew, I did that a short while back using the 'contact us' link from the 'help and support' tab
Hi,
Did you get my email ok?
I did - I'm looking at this today.
Thanks Drew
Just so you know, the installation of Runway was done as an upgrade from standard Perch and not as a fresh install.
Ok, thanks.
Hi Drew, any news on this?
Should I just install a fresh copy of Runway?
Hi Drew,
Apologies, I have it working now. You mentioned previously about adding type > file
I have just spotted a typo which I corrected and now it works.
Sorry! so your advice to add that definition was the correct solution