Just installed on a site I'm developing. After installing, I used the web importer to import the KJV Bible. After installing I went back to the list and received the following errors. I do not see this error on any other pages. Book count and verse count are blank.

I checked on the other site I have this on and it has two Bibles installed, so the same set of four errors show up twice. It also does not have book or verse count either.

    Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of /home/.../modules/bible/bible.module).
    Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of /home/.../modules/bible/bible.module).
    Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of /home/.../modules/bible/bible.module).
    Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of /home/.../modules/bible/bible.module).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MikeLee_Birdy’s picture

Dear Sir:
Please upgrade to lastest version. Refer http://drupalbible.org/comment/370 .
MikeLee

DevJoshLopez’s picture

I am on the latest version and still seeing this.

sifuhall’s picture

I have the same issue, version 7.14

shabam’s picture

Any movement on this? I too am getting this error on 7.14

MikeLee_Birdy’s picture

Dear Sir:
How about go more recent version of Drupal 7, like 7.22 ?
MikeLee

ssoulless’s picture

Priority: Normal » Major

Im using Drupal 7.23 and the 7.x-1.4 of this module.

I have exactly the same error... Please give us any solution!!!

urhinex’s picture

Issue summary: View changes

Also having the same error.....Need some help on it please

Kebz’s picture

Well .. this is strange. I just did the web import for two of my websites. One is successful and has no errors ... but the other one is throwing me this notice below when I click on the "List" tab =\ ... please note the "Backtrace" info and hopefully someone will be able to help resolve the problem. Thanks in advance! =)

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 691 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Notice: Undefined property: stdClass::$c in bible_admin_list() (line 693 of .../sites/all/modules/bible/bible.module).
Backtrace:
bible_admin_list()
call_user_func_array('bible_admin_list', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Kebz’s picture

As I was setting the blocks, this notice popped up. My other site is not getting these issues at all. I have no idea what could cause this other than different theme settings?? Both are using the same PHP and Drupal core versions.

Notice: Undefined property: stdClass::$c in theme_bible_daily_proverb() (line 3562 of .../sites/all/modules/bible/bible.module).

Backtrace:
theme_bible_daily_proverb(Array) theme.inc:1161
theme('bible_daily_proverb', Array) bible.module:318
bible_block_view('2')
call_user_func_array('bible_block_view', Array) module.inc:866
module_invoke('bible', 'block_view', '2') block.module:902
_block_render_blocks(Array) block.module:686
block_list('sidebar_second') block.module:318
block_get_blocks_by_region('sidebar_second') block.module:268
block_page_build(Array) common.inc:5784
drupal_render_page(Array) common.inc:2701
drupal_deliver_html_page(Array) common.inc:2589
drupal_deliver_page(Array, '') menu.inc:532
menu_execute_active_handler() index.php:21

rhuffstedtler’s picture

The attached patch against version 7.x-1.4 should fix this.

Kebz’s picture

Hi @rhuffstedtler

After I posted, I did a search and also searched on his website and found this link http://drupalbible.org/content/notice-undefined-property-stdclassc-en-bi... -- where he notes this

Yes, this is a bug, you can fix it with lastest version. Please goto https://drupal.org/node/2014421 for version bible 7.x-1.5-alpha4.

The thing is this ... his Bible project page (https://www.drupal.org/project/bible) only lists these versions
Version Download Date Links

  • 7.x-1.4 tar.gz (70.22 KB) | zip (92.48 KB) 2011-Dec-28 Notes
  • 6.x-1.4 tar.gz (69.92 KB) | zip (92.26 KB) 2011-Dec-28 Notes
  • 5.x-2.1-rc10 tar.gz (35.09 KB) | zip (44.5 KB) 2009-Apr-01 Notes

and nowhere does it talk about this release "bible 7.x-1.5-alpha4" https://www.drupal.org/node/2014421

It's frustrating when this sort of thing happens =\

I'm going to create an issue noting the more recent release that everyone should upload to their site.

BTW ... thank you for contributing the patch. I just saw your post AFTER all the above, so I won't be able to test it out.

Thanks again =)

rhuffstedtler’s picture

Hi @Kebz, 7.x-1.5-alpha4 is a tag rather than a branch. So, you would have to clone the project from git and then checkout that specific branch.

There doesn't seem to have been much activity from the maintainers in a long time. If I don't see any action on this, I may reach out and inquire about becomeing a co-maintainer.

berenddeboer’s picture

Status: Active » Needs review
FileSize
1.26 KB

The attached patch renamed variables, but didn't replace all usages. This patch improves upon that.

  • rhuffstedtler committed b27ef44 on 7.x-1.x
    Issue #1816130 by berenddeboer, rhuffstedtler: changed variable names to...
rhuffstedtler’s picture

Assigned: Unassigned » rhuffstedtler

berenddeboer - Made a slight change, merged your patch into 7.x-1.x, and tested locally. Please verify and let me know if we're good to close the issue.

berenddeboer’s picture

Two more changes:

  1. $book_count/$verse_count are not objects, but values.
  2. don't use hard-coded style, have used the system selected class. The red is too much of an error colour, and the selected class will display per the current admin theme.
berenddeboer’s picture

Status: Needs review » Fixed
rhuffstedtler’s picture

Assigned: rhuffstedtler » Unassigned
Status: Fixed » Closed (fixed)