Support » Plugin: Nelio Content - Social Media Marketing Automation » Autoset Featured Image error with newspaper theme

  • Resolved Tri An

    (@ngtrian)


    I’m using newspaper and have an error with Autoset Featured Image
    Notice: Undefined offset: 2 in /var/www/tinexpress24h/wp-content/plugins/nelio-content/includes/class-nelio-content-external-featured-image-helper.php on line 249

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi Tri An!

    Thanks for the heads up. On line 249, there’s the following piece of code:

    
     $result['any'] = $matches[ rand( 1, count( $result ) ) ];
    

    Replace it with this:

    
     $result['any'] = $matches[ rand( 1, count( $matches ) ) ];
    

    (notice how we replaced $result with $matches).

    I’m preparing a new release of the plugin, which should hopefully be ready soon. In the meantime, please apply the change manually.

    Let me know if it worked!

    Thanks. That’s work!

    Thanks, I just update your plugin

    • This reply was modified 2 years, 11 months ago by  Tri An.
    Plugin Author David Aguilera

    (@davilera)

    That’s great! I’m happy to know 🙂

    Please, don’t forget to rate and comment on our plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoset Featured Image error with newspaper theme’ is closed to new replies.