Title: Stopped working for widget
Last modified: March 8, 2018

---

# Stopped working for widget

 *  Resolved [tristadeleon](https://wordpress.org/support/users/tristadeleon/)
 * (@tristadeleon)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/)
 * I’m tyring to use the gallery widget .. and it won’t accept any custom gallery
   links .. only shows attachement and image. help!!!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstopped-working-for-widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/stopped-working-for-widget/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/stopped-working-for-widget/page/2/?output_format=md)

 *  [thinkdolphin](https://wordpress.org/support/users/thinkdolphin/)
 * (@thinkdolphin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10055511)
 * I’m having the same problem. I don’t think it’s compatible with the version. 
   Disappointing.
 *  Plugin Author [johnogg](https://wordpress.org/support/users/johnogg/)
 * (@johnogg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10055515)
 * • Open the file wp-content/plugins/wp-gallery-custom-links/wp-gallery-custom-
   links.php
    • Change line 204 (or 205, whichever one begins with $attachment_ids
   = ) to read: $attachment_ids = $attr[‘ids’]; • Comment out lines 215, 216, 217•
   Save the file.
 *  [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10056552)
 * Doesn’t work for me either – tried is as a gallery widget and as a text widget
   and I’ve made those changes to the php file.
 *  Thread Starter [tristadeleon](https://wordpress.org/support/users/tristadeleon/)
 * (@tristadeleon)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10058144)
 * That doesn’t work, unfortunately !
 *  Plugin Author [johnogg](https://wordpress.org/support/users/johnogg/)
 * (@johnogg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10058220)
 * What ‘widget’ are you using? If you are using the standard WordPress gallery 
   widget there should be no problem – I have one running on WordPress 4.9.4 on 
   my site. If you are using something like the Jetpack Gallery Widget then there
   may be an issue as 3rd party galleries can block ours. Also be sure to read the
   instructions for this plugin to ensure that you are setting the options correctly.
   If none of that addresses your issue feel free to send details of a temporary
   user account that I can use to log in and check your setups to [mailjohng@gmail.com](https://wordpress.org/support/topic/stopped-working-for-widget/mailjohng@gmail.com?output_format=md)
   and I’ll be happy to see if I can troubleshoot.
 *  Plugin Author [johnogg](https://wordpress.org/support/users/johnogg/)
 * (@johnogg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10058765)
 * I just solved Tristadeleon’s problems. They hadn’t commented the lines out as
   described above and also had the wrong ‘Link To’ value set for the gallery widget(
   it should be set to ‘attachment page’). Others may want to check that they have
   done this correctly.
 *  Thread Starter [tristadeleon](https://wordpress.org/support/users/tristadeleon/)
 * (@tristadeleon)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10058811)
 * Thank you John – I apologize, I thought I had done that step. Thanks again for
   your help!
 *  Thread Starter [tristadeleon](https://wordpress.org/support/users/tristadeleon/)
 * (@tristadeleon)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10086098)
 * john – can you please tell me what the original code is, I’m putting back my 
   original theme for other reasons and I need the plugin to work as it did
 *  [zippadeezazz](https://wordpress.org/support/users/zippadeezazz/)
 * (@zippadeezazz)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10099205)
 * [@johnogg](https://wordpress.org/support/users/johnogg/)
 * I followed the steps above. I had 4 strings of error code showing in my widget
   area, after the code – only 2, but the images still do not link and still open
   as an image gallery.
 * Site: [http://www.zippadeezazz.com](http://www.zippadeezazz.com)
 * Error code:
 * Warning: array_unique() expects parameter 1 to be array, null given in /var/sites/
   z/zippadeezazz.com/public_html/wp-content/plugins/wp-gallery-custom-links/wp-
   gallery-custom-links.php on line 220
 * Warning: Invalid argument supplied for foreach() in /var/sites/z/zippadeezazz.
   com/public_html/wp-content/plugins/wp-gallery-custom-links/wp-gallery-custom-
   links.php on line 222
 *  [zippadeezazz](https://wordpress.org/support/users/zippadeezazz/)
 * (@zippadeezazz)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10099235)
 * [@johnogg](https://wordpress.org/support/users/johnogg/)
 * The plugin wp-gallery-custom-links/wp-gallery-custom-links.php has been deactivated
   due to an error: The plugin does not have a valid header.
    -  This reply was modified 8 years, 1 month ago by [zippadeezazz](https://wordpress.org/support/users/zippadeezazz/).
      Reason: the plugin says invalid now so that's why the code disappeared
    -  This reply was modified 8 years, 1 month ago by [zippadeezazz](https://wordpress.org/support/users/zippadeezazz/).
 *  Thread Starter [tristadeleon](https://wordpress.org/support/users/tristadeleon/)
 * (@tristadeleon)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10166985)
 * Hi John,as previously stated, I’m using a new theme and my home page that has
   a gallery is acting odd. When I click on an image while using a mobile device,
   it’s opening to a black screen as if to open the image and not the page that 
   it’s pointing to ..
 * [https://www.scentswarmers.com](https://www.scentswarmers.com)
 *  Plugin Author [johnogg](https://wordpress.org/support/users/johnogg/)
 * (@johnogg)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10166994)
 * [@tristadeleon](https://wordpress.org/support/users/tristadeleon/) – If your 
   site is doing something different when using mobile it will be because you have
   some plugin that is handling mobile requests. I would guess that that is what
   is blocking our plugin from working. You’d need to identify what plug-in that
   is and see what workarounds you can find to it.
 *  [realidw](https://wordpress.org/support/users/realidw/)
 * (@realidw)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10355819)
 * Have sent you an email about my issue, any chance you can login and have a look?
 *  [starterpack](https://wordpress.org/support/users/starterpack/)
 * (@starterpack)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10753679)
 * Have you been able to solve this latest problem?
 * I have the same problem as [@realidw](https://wordpress.org/support/users/realidw/).
 * I followed the steps above. I had 6 strings (because I have 6 pictures) of error
   code showing in my widget area. After changing the code – only 2 errow messages.
   The images still do not link and still open as an image gallery.
 * Warning: array_unique() expects parameter 1 to be array, null given in [I have
   removed the site structure for privacy]/wp-content/plugins/wp-gallery-custom-
   links/wp-gallery-custom-links.php on line 220
 * Warning: Invalid argument supplied for foreach() in [I have removed the site 
   structure for privacy]/wp-content/plugins/wp-gallery-custom-links/wp-gallery-
   custom-links.php on line 222
 * Any help is much appreciated! 🙂
 *  [realidw](https://wordpress.org/support/users/realidw/)
 * (@realidw)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/#post-10755452)
 * I gave up after a while, now using Gallery by Supsystic, does everything I need.
 * D.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/stopped-working-for-widget/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/stopped-working-for-widget/page/2/?output_format=md)

The topic ‘Stopped working for widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gallery-custom-links_d3d5d9.svg)
 * [WP Gallery Custom Links](https://wordpress.org/plugins/wp-gallery-custom-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gallery-custom-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gallery-custom-links/reviews/)

 * 16 replies
 * 7 participants
 * Last reply from: [starterpack](https://wordpress.org/support/users/starterpack/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/stopped-working-for-widget/page/2/#post-10757042)
 * Status: resolved