Title: fatal error
Last modified: August 22, 2016

---

# fatal error

 *  Resolved [radio-birikina](https://wordpress.org/support/users/radio-birikina/)
 * (@radio-birikina)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/)
 * Parse error: syntax error, unexpected T_FUNCTION in /web/htdocs/www.sorrriso.
   it/home/wordpress/wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/
   class-ngg-slideshow-widget.php on line 174
 * [https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/](https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/)

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

 *  [jayque9](https://wordpress.org/support/users/jayque9/)
 * (@jayque9)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727269)
 * It’s because use are using a version of php prior to 5.3. all the widget classes
   in the widgets folder need to be updated to make it work in php 5.2.
 * eg in class-ngg-gallery-widget.php the last few lines are:
 * add_action( ‘widgets_init’, function () {
    register_widget( ‘NGG_Gallery_Widget’);});
 * change it to:
 * add_action(‘widgets_init’, create_function(”, ‘return register_widget( “NGG_Gallery_Widget”);’));
 * The same change needs to be made in the other two widget classes as well.
 *  [niknetniko](https://wordpress.org/support/users/niknetniko/)
 * (@niknetniko)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727271)
 * jayque9 is correct. We will include a fix in a future version…
 * …but you should really upgrade your PHP version. We will not keep supporting 
   older versions, and at one point in the future, we will drop support for 5.2.
 *  Thread Starter [radio-birikina](https://wordpress.org/support/users/radio-birikina/)
 * (@radio-birikina)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727275)
 * Thanks a lot in advance for support!!!
 *  [pikkabbu](https://wordpress.org/support/users/pikkabbu/)
 * (@pikkabbu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727367)
 * I made the changes, and still have a parse fatal error 🙁
 * (by the way, the server isn’t mine, but my web site is hosted. So I can’t update
   php version).
 *  [niknetniko](https://wordpress.org/support/users/niknetniko/)
 * (@niknetniko)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727368)
 * [@pikkabbu](https://wordpress.org/support/users/pikkabbu/) A fix will be released
   soon: [https://wordpress.org/support/topic/fix-to-be-released-fatal-error-ajax-pagination-fail?replies=1#post-6504307](https://wordpress.org/support/topic/fix-to-be-released-fatal-error-ajax-pagination-fail?replies=1#post-6504307)
 * Anyway, you should contact your host and ask them to upgrade it. PHP developers
   stopped supporting 5.2 about 4 years ago, which means the server is open to vulnerabilities
   since 4 years.

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

The topic ‘fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextcellent-gallery-nextgen-legacy_9c9087.
   svg)
 * [NextCellent Gallery - NextGEN Legacy](https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/)
 * [Active Topics](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [niknetniko](https://wordpress.org/support/users/niknetniko/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-1493/#post-5727368)
 * Status: resolved