Welcome, Guest
Username Password: Remember me

Administration Error (images folders??)
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Administration Error (images folders??)

Administration Error (images folders??) 19 May 2010 13:38 #2170

I am getting a strange error.

Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home1/vineyar1/public_html/urbanvineyard.org/administrator/components/com_biblestudy/views/admin/view.html.php on line 90

Warning: Invalid argument supplied for foreach() in /home1/vineyar1/public_html/urbanvineyard.org/libraries/joomla/html/html/select.php on line 68

I just installed BibleStudy and although I think it's a powerful tool, I am dismayed because installation docs are non-existent and help with errors goes unanswered (ref: www.joomlabiblestudy.org/forums/9-bug-re...ers-errors.html#2042).

What is the solution to this error?

Re:Administration Error (images folders??) 19 May 2010 13:50 #2171

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
The error involves the teacher default image. Is there a drop down for that on the screen below the error?

I think you are mistaken in your other assertions.

#1 the documentation is here: www.joomlabiblestudy.org/docs/section/5-user-guide-61x.html

While there is nothing specific on installation, most of what you need to use the component is there. Installation normally does not need anything special from you.

#2 I'm a little concerned that you would say we are not helpful on errors. The volunteers that have written and support this component are very responsive. We cannot necessarily fix every error - and often it is something in the configuration of the users web site and not the component.

We consider this a work of ministry and no one gets paid for their time or talents.

This is the code surrounding the error:

	$studypath = JPATH_SITE.'/images/'.$params->get('teachers_imagefolder', 'stories');
$fileList = JFolder::files($studypath);
foreach($fileList as $key=>$value)
{
$folderfinal1 = new JObject();
$folderfinal1->value = $value;
$folderfinal1->id = $key;
if (strtolower($folderfinal1->value) == 'index.html') { unset($folderfinal1->value); unset($folderfinal1->key);}
else {$folderfinal5[] = $folderfinal1;}
}
array_unshift($folderfinal5, JHTML::_('select.option', '0', '- '.JText::_('No Image').' -', 'value', 'value'));
$lists['teacher'] = JHTML::_('select.genericlist', $folderfinal5, 'teacher', 'class="inputbox"', 'value', 'value', $admin->teacher );


The component is looking for a folder that is under the /images folder - either the parameter you have set for the teachers image folder (from the drop down above on the admin screen) or for /images/stories. Perhaps you don't have an images/stories folder and haven't set the teachers image folder in the component.

Could be one idea anyway.
"You shall know the truth and the truth shall set you free." JC

Re:Administration Error (images folders??) 19 May 2010 15:27 #2172

I did find out by spending over an hour playing around with the Admin page that I have to leave the settings as "Default" or I will get the error. Please show me where in the installation docs that parameter is set or even called for.

For that matter, I don't see ANYTHING in the docs you pointed me to that says "INSTALLATION PROCEDURES" or anything to that end. The three categories are

Localization (2) - dealing with language configuration

Basic Usage (10) - starts off with Quick Start Guide but doesn't tell me how to install or configure it.

Administration (0) - nothing in that folder at all.

The other comment about not answering concerns stems from my search and finding a similar issue with an unanswered question that's been sitting there for over a month.

Don't get me wrong, I think this is MUCH better than just posting a sermon via a generic MP3 player. I just wish the installation went a bit smoother. I did take a look at the Beta version and that looks very promising. I'll be awaiting that version.

Thanks for getting back to me.

Re:Administration Error (images folders??) 19 May 2010 19:32 #2173

Edit:

After looking over the code you provided me, it appears that you are hard-coding the folders directly in the .php file rather than setting them with a variable. Might want to change that procedure in a future release.

Re:Administration Error (images folders??) 20 May 2010 16:47 #2183

Ken,
Thanks for the feedback about the component.. ive found Tom very responsive on bug and error reports.. try doing a search of the forums to see how many times he has offered to look personally at someone's error on their site and fixed them!!

What you might like to consider is helping out with the development of the component yourself? Just PM tom. Documentation / setup instructions are something that we need to do along with the final version of 6.2, so if you'd like to help out with that, then we'd really appreciate it!

Hope you're getting on ok with your implementation on your site,
Rich

Re:Administration Error (images folders??) 20 May 2010 16:51 #2184

Thanks Rich.

I'm fairly new to Joomla, but have been involved with computers (geek-style) for well over 20 years. I'll keep that option to help open.
  • Page:
  • 1
  • 2
Time to create page: 0.76 seconds