Loading


Advertisement:

Author Topic: Rating/Voting Plugin issue, please help.  (Read 192 times)

BRYAN

  • Jr. Member
  • **
  • Posts: 57
  • Beef Ruins Yet Another Nation
Rating/Voting Plugin issue, please help.
« on: March 05, 2017, 11:47:07 pm »
Ok this one is very new to me, i read about it it's something with calling array that's not an array, but I'm not that experienced so if you know please help.

When i put this function
Code: [Select]
<?php echo_best_rated(3); ?> into my header, it turns all my listings to show expired to user, even though in admin they are all active, in fact as soon as i take that function out they all go back to normal.

In same time without that function if i view the item page i have no bugs in debugger, but with
Code: [Select]
<?php echo_best_rated(3); ?> i get these errors:

PHP Warning: Illegal string offset 'pk_i_id' in /oc-includes/osclass/helpers/hDefines.php on line 493
PHP Notice: Uninitialized string offset: 0 in /oc-includes/osclass/helpers/hDefines.php on line 493
PHP Warning: Illegal string offset 'fk_i_category_id' in /oc-includes/osclass/helpers/hDefines.php on line 487
PHP Notice: Uninitialized string offset: 0 in /oc-includes/osclass/helpers/hDefines.php on line 487

and it keeps going for the rest of the item table.

what i figured out it only does this to
Code: [Select]
<?php echo_best_rated(3); ?> and not for
Code: [Select]
<?php echo_user_best_rated(3); ?>
im assuming the issue is in set_results.php in voting plugin.

any help is appreciated, thanks in advance.

BRYAN

  • Jr. Member
  • **
  • Posts: 57
  • Beef Ruins Yet Another Nation
Re: Rating/Voting Plugin issue, please help.
« Reply #1 on: March 07, 2017, 05:59:08 am »
well this is one of the most used plugins, doesn't anyone experience same problem when posting this function on home or header. speak up, maybe u spark some ideas on solving it.