Title: [Plugin: Like-Button-Plugin-For-WordPress] Error in admin/gb_design.php
Last modified: August 20, 2016

---

# [Plugin: Like-Button-Plugin-For-WordPress] Error in admin/gb_design.php

 *  [fusion2004](https://wordpress.org/support/users/fusion2004/)
 * (@fusion2004)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-like-button-plugin-for-wordpress-error-in-admingb_designphp/)
 * Hi, I recently was moving a site from a apache/mod_php server to a newer nginx/
   php-fpm server and after the move the site would not load due to getting an error
   in the admin/gb_design.php. I didn’t save the specific message, but it was an
   unexpected $end on the last line of the file.
 * After a little digging, I’m led to believe it’s because you had a php class defined
   throughout multiple <?php … ?> tags, which is not allowed. Not sure why the old
   PHP wasn’t throwing errors and why the new one was. (The old was either 5.1 or
   5.2, the new server runs 5.3.)
 * To fix it, I just rewrote that file to use all echo statements instead of putting
   html content outside the php tags while still inside the class declaration.
 * My fix will be overwritten next time your plugin updates though, so I’d be much
   obliged if you would implement the GBDesignContent class in admin/gb_design.php
   within one set of php tags.
 * Thanks much,
    fusion2004
 * [http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/](http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  [deermoose](https://wordpress.org/support/users/deermoose/)
 * (@deermoose)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-like-button-plugin-for-wordpress-error-in-admingb_designphp/#post-2262296)
 * Note that I had the same issue: WP worked fine on one server, but broke with 
   a similar error message about an unexpected $end on line 203 of gb_design.php.
   At first I thought the issue was due to a difference between PHP versions (old
   server had 4.9 installed vs. 5.3 on the new one), but after sorting through the
   code, I noticed one case in which a short open tag was used on line 169, which
   means the closing bracket on this line will be skipped if php.ini isn’t set to
   recognize short open tags.
 * I changed `<?` to `<?php` on line 169, and the problem seems to be resolved.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Like-Button-Plugin-For-WordPress] Error in admin/gb_design.php’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/like-button-plugin-for-wordpress.
   svg)
 * [Like-Button-Plugin-For-Wordpress](https://wordpress.org/plugins/like-button-plugin-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/like-button-plugin-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [deermoose](https://wordpress.org/support/users/deermoose/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-like-button-plugin-for-wordpress-error-in-admingb_designphp/#post-2262296)
 * Status: not resolved