Title: Error message
Last modified: January 26, 2020

---

# Error message

 *  [gkoper](https://wordpress.org/support/users/gkoper/)
 * (@gkoper)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-message-800/)
 * I changed for this plugin because of excessive error messages, but unfortunately
   this one does not appear to be flawless either:
 *  Only variables should be passed by reference in /var/www/domains/gerkoper.nl/
   subdomains/blog/wp-content/plugins/slideshow-reloaded/views/SlideshowReloadedSlideshowSlide/
   frontend_attachment.php on line 108
 * Did I do something wrong?
 * Thanks in advance for the help,
 * Ger
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-message-800%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [etfb](https://wordpress.org/support/users/etfb/)
 * (@etfb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-message-800/#post-12511279)
 * While it’s definitely the Wrong Thing for the developer of this plugin to leave
   warning messages like that in a released plugin, you can switch off warnings 
   and notices and you should stop seeing the messages anywhere except in your log
   files.
 *  [abonnefoy](https://wordpress.org/support/users/abonnefoy/)
 * (@abonnefoy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-message-800/#post-12674553)
 * Hello,
 * i have the same issue.
    `Notice: Only variables should be passed by reference
   in ./wp-content/plugins/slideshow-reloaded/views/SlideshowReloadedSlideshowSlide/
   frontend_attachment.php on line 108`
 * I made correction :
    replace line 112 in file:
 * `<?php if (in_array(end(explode('.', $imageSrc)), array('avi', 'flv', 'wmv', '
   mov', 'mp4', 'webm', '3gp', 'ogg'))) { ?>`
 * with
 *     ```
       $arrayTmp = array('avi', 'flv', 'wmv', 'mov', 'mp4', 'webm', '3gp', 'ogg');
       $srcTAb = explode('.', $imageSrc);
       if (in_array(end($srcTAb), $arrayTmp)) {
       ```
   
    -  This reply was modified 6 years, 1 month ago by [abonnefoy](https://wordpress.org/support/users/abonnefoy/).
    -  This reply was modified 6 years, 1 month ago by [abonnefoy](https://wordpress.org/support/users/abonnefoy/).
 *  Thread Starter [gkoper](https://wordpress.org/support/users/gkoper/)
 * (@gkoper)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-message-800/#post-12679770)
 * Dear Abonnefoy
 * That indeed worked well, albeit that the replacement required is
 *     ```
       <?php
                           $arrayTmp = array('avi', 'flv', 'wmv', 'mov', 'mp4', 'webm', '3gp', 'ogg');
                           $srcTAb = explode('.', $imageSrc);
                           if (in_array(end($srcTAb), $arrayTmp)) {
                               ?>
       ```
   
 * Thank you for the suggestion.
 * Ger

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

The topic ‘Error message’ is closed to new replies.

 * ![](https://ps.w.org/slideshow-reloaded/assets/icon-256x256.png?rev=2139216)
 * [Slideshow Reloaded](https://wordpress.org/plugins/slideshow-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-reloaded/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [gkoper](https://wordpress.org/support/users/gkoper/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/error-message-800/#post-12679770)
 * Status: not resolved