odd "error" on module install
Posted on: Sat, 05/03/2008 - 17:50
odd "error" on module install
Hey there, Just picked up this theme, and on installation I received an odd error, both on my local dev box and on a remote server.
I already had the required modules enabled. And when I enabled the Efficient module I got a dump of the $presets Array on the confirm page. Reinstalling the module with Devel experianced the same problem.
I'll be looking into it, but if you've got any words of wisdom let me know.
Versions and Modules Enabled:
Drupal 5.7 AdBard 5.x-1.1 AdSense 5.x-2.0 CAPTCHA 5.x-3.1 CAPTCHA Pack 5.x-1.1 Content Construction Kit (CCK) 5.x-1.7 Countdown 5.x-1.0 Date 5.x-1.8 Devel 5.x-0.3 Event 5.x-1.0 Fivestar 5.x-1.12 GMap Module 5.x-1.0-alpha1 GMap Addons 5.x-1.x-dev (2007-Aug-28) Google Analytics 5.x-1.4 Image 5.x-1.8 ImageCache 5.x-1.5 ImageField 5.x-1.2-rc1 JQuery Update 5.x-1.0 Javascript Tools 5.x-1.1 Legal 5.x-1.3 Lightbox2 5.x-2.6 Link 5.x-2.1 location (API, module) 5.x-1.x-dev (2007-Oct-31) LoginToboggan 5.x-1.2 'me' aliases 5.x-1.0 OpenID 5.x-1.1 PNG Fix 5.x-3.0 Private Upload 5.x-1.0-beta6 Token 5.x-1.11 Update Status 5.x-2.2 Username originality AJAX check 5.x-1.x-dev (2007-Jul-24) Voting API 5.x-1.6

Well, the code on 57-58 explains the Array dump:
foreach($presets as $preset){print_r($preset);
Looking deeper into the problem reveils that the "featured_imagefield" isn't being created in CCK, nor do I see where in the code it creates this image field. I'm assuming the code was supposed to create this and there's no information on the Setup page on this matter.
Also the Efficiant modules settings are not set at all.
EDIT: The version of the Efficient Theme is v1.3
Looking around more on your forums, it seems that this isn't an isolated problem:
http://www.themesnap.com/drupalsnap-theme-ins...
Sounds like a busted efficient.install file. Can supply me with a "working" install file, and/or provide the specs for a proper "Featured Image" field?
Hi,
Actually the Efficient module is simply a helper module, not a "installation profile" module for the theme. A user who purchases and uses the theme must know how to create a custom content type first, which is a new image field type for "story"
Example:
Field Name =
field_featured_image
Field type =
image
Used in =
Story
After the set up of the new fields that imagecache and cck uses for the home page, then the Efficient page found when clicking on the Efficient module under Site Configuration simply gives the user an easy dropdown menu to assign the correct imagefield to each Feature block.
So, the Efficient module is not broken. The only way this theme could be set up completely without having to do anything is via an installation profile, which I'm having our developer build over the next day or two since there is not a lot of people familiar with setting up fields and content types.
Thanks
Will your developer make an installation profile for the publisher theme also?
If this is the case then someone needs to update this page as soon as possible, because no where on it does it mention needing to create the Custon Field.
This also doesn't explain away the fact that the module's .install file includes a "print_r" call which breaks the simple act of enabling the module.
While the module may not be broken the install documentation certianly is misleading. Complicated by the dump of the array the module's .install file does when you enable it.
Post new comment