Title: php error with nggallery
Last modified: August 31, 2018

---

# php error with nggallery

 *  Resolved [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/)
 * I followed the instructions for using ng gallery to show multiple items and get
   this above the inserted gallery (the paypal buttons etc work just fine):
 * Notice: Undefined property: stdClass::$show_piclens in /var/www/farvehytten/public_html/
   wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/gallery-wp-cart.
   php on line 28
 * [nggallery id=5 template=”wp-cart”]
 * I have only a few items for sale at a time, so a real shopping solution is a 
   bit over the top for me. This little plugin is otherwise perfect for me! 🙂
 * Newly installed/updated plugins and WP. I can’t see any reference to piclens 
   in the settings of either plugin.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-with-nggallery%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

1 [2](https://wordpress.org/support/topic/php-error-with-nggallery/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-with-nggallery/page/2/?output_format=md)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10642819)
 * Hi, thank you for reporting this notice. I have submitted a message to the developers
   to investigate further your findings.
 * Kind regards
 *  Plugin Author [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10643731)
 * Thank you. I have removed that reference from the plugin’s code. If you delete
   the plugin and install it again now, it will pick up the new change. You won’t
   lose any settings if you delete and install again.
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10643799)
 * Thank you for the speedy response, the error msg is gone, settings intact. 🙂
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10672533)
 * Well, today I have a similar php error, but another line!
 * I copied my site to make an English version, eventually with slightly different
   content. On the original test product it looks fine, on the new site, not so 
   much. Same page, just translated the words.
 * [http://www.farvehytten.dk/butik/stof/](http://www.farvehytten.dk/butik/stof/)(
   original)
 * [http://colourcottage.com/shop/handwoven/](http://colourcottage.com/shop/handwoven/)
 * THEN I created a new test product, copied the code from the former, and now the
   button doesn’t show up. I can NOT see a difference except I changed name and 
   price.
 * The only difference being that the new one is a portfolio document, not a “page”.
 * [http://colourcottage.com/portfolio/northern-twill/](http://colourcottage.com/portfolio/northern-twill/)
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10672602)
 * The exact same code works directly pasted into the portfolio doc – but not with
   the ng gallery recipe that I got from the tutorial on digital downloads. But 
   it works with the gallery on the “Pages”? (apart from a php error on one of them)
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673001)
 * Well, this is no rush, my header file is suddenly corrupted and I’ve lost contact
   with the server after doing a mailchimp verification, so you probably can’t see
   anything until I get that code pasted back in. Sigh.
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673152)
 * Done. I don’t know if anyone is reading, server back up, php errors intact, sorry
   for the confusion.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673319)
 * Hi, can you share the new error message you are receiving.
 * Thank you
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673344)
 * Notice: Undefined variable: i in /home/com/public_html/wp-content/plugins/wordpress-
   simple-paypal-shopping-cart/lib/gallery-wp-cart.php on line 39
 * on the page
 * [http://colourcottage.com/shop/handwoven/](http://colourcottage.com/shop/handwoven/)
 * which is a direct copy of another page without that error
 * [http://www.farvehytten.dk/butik/stof/](http://www.farvehytten.dk/butik/stof/)
 * And the last error is that the button doesn’t show up inside the ng gallery “
   box”, but shows fine pasted in outside it. This code was pasted from the above
   mentioned
 * [http://colourcottage.com/shop/handwoven/](http://colourcottage.com/shop/handwoven/)
 * where the button shows up just fine inside the nggallery box.
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673352)
 * I’m baffled that it’s not consistent, but since I copy/paste surely it can’t 
   be a typo?
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10673372)
 * Sorry, the button not showing up is
 * [http://colourcottage.com/portfolio/northern-twill/](http://colourcottage.com/portfolio/northern-twill/)
 * Getting a bit stressful flipping pages here.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10675141)
 * Hi, I checked the URL above. I clicked on the Add to cart button. I then clicked
   on the checkout button, it sent me to PayPal without a problem. I did not see
   any error messages.
 * Regards
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10675814)
 * The buttons are working. I’ll try to paste screen shots
 * ![](https://colourcottage.files.wordpress.com/2018/09/capture1.jpg)
 * ![](https://colourcottage.files.wordpress.com/2018/09/capture2.jpg)
 *  Thread Starter [Pia](https://wordpress.org/support/users/colourcottage/)
 * (@colourcottage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10675819)
 * The image with the orange scarf has the exact same button code as those below–
   I’m trying to set up sample pages for everything I need so I can later copy new
   products in easily.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/#post-10675824)
 * Hi, because it is working I am not sure what help do you need? Can you please
   clarify further what your current issue is.
 * Thank you

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

1 [2](https://wordpress.org/support/topic/php-error-with-nggallery/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-with-nggallery/page/2/?output_format=md)

The topic ‘php error with nggallery’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-simple-paypal-shopping-cart/assets/icon-128x128.
   png?rev=2722490)
 * [Simple Shopping Cart](https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-simple-paypal-shopping-cart/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 28 replies
 * 3 participants
 * Last reply from: [Pia](https://wordpress.org/support/users/colourcottage/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-nggallery/page/2/#post-10680566)
 * Status: resolved