• Resolved raykaii

    (@raykaii)


    there is a bug that comes up with this plugin if you go to a page then under Revisions you will see many php errors like :

    Warning: Invalid argument supplied for foreach() in /public/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 1102

    click on image to see it bigger :

    View post on imgur.com

    • This topic was modified 9 years, 7 months ago by raykaii.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author axew3

    (@axewww)

    just looked up to the most edited page, and it result ok. No error like the one you report but, i’ve not test any possible scenario (as test out all things about two systems and all related possibilities of each with his settings it is not a work of a 1 minute).

    Perhaps the error you report is about an eventually fail on checking for posts in phpBB: if there are no posts to retrieve (that should may happen +- never).
    By the way, maybe this will resolve this and your case, substitute from line 1100 to 1106 on 1.5.3:

     if ( $w3all_avatars_yn ) :
      $w3all_last_posts_users = self::last_forums_topics($w3all_lasttopic_avatar_num);
          foreach ( $w3all_last_posts_users as $post_uname ) :
           $pun = esc_sql($post_uname->topic_last_poster_name);
           $p_unames[] = $pun;
          endforeach;
     endif;

    with this code:

     if ( $w3all_avatars_yn ) :
      $w3all_last_posts_users = self::last_forums_topics($w3all_lasttopic_avatar_num);
       if(!empty($w3all_last_posts_users)):
          foreach ( $w3all_last_posts_users as $post_uname ) :
           $pun = esc_sql($post_uname->topic_last_poster_name);
           $p_unames[] = $pun;
          endforeach;
       endif;
     endif;
    • This reply was modified 9 years, 7 months ago by axew3.
    • This reply was modified 9 years, 7 months ago by axew3.
    • This reply was modified 9 years, 7 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    p.s thank you for the report, this will be also immediately updated on 1.5.3.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘bug on WP Page Revisions’ is closed to new replies.