Title: Generates bad PHP code.
Last modified: August 20, 2016

---

# Generates bad PHP code.

 *  Resolved [Giwayume](https://wordpress.org/support/users/giwayume/)
 * (@giwayume)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/)
 * I installed the plugin, added a new slider with one image. It crashes after generating
   the following html:
 *     ```
       <div class="cycloneslider cycloneslider-template-default" id="cycloneslider-services-2-1" style="max-width:960px">
       	<div class="cycloneslider-slides cycle-slideshow"  data-cycle-slides="> div" data-cycle-auto-height="960:300" data-cycle-fx="fade" data-cycle-speed="1000" data-cycle-timeout="4000" data-cycle-pause-on-hover="true" data-cycle-pager="#cycloneslider-services-2-1 .cycloneslider-pager" data-cycle-prev="#cycloneslider-services-2-1 .cycloneslider-prev" data-cycle-next="#cycloneslider-services-2-1 .cycloneslider-next" data-cycle-tile-count="7" data-cycle-tile-delay="100" data-cycle-tile-vertical="true" data-cycle-log="false">
       					<div class="cycloneslider-slide" >
       								<img src="
       ```
   
 * It works fine if I do not add any images to the slider. Ideas? I’m kinda tired
   of none of these image sliders working. About to just go in and program my own.
 * [http://wordpress.org/extend/plugins/cyclone-slider-2/](http://wordpress.org/extend/plugins/cyclone-slider-2/)

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

 *  Plugin Author [kosinix](https://wordpress.org/support/users/kosinix/)
 * (@kosinix)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483322)
 * Are you using the latest version?
 *  [tibber](https://wordpress.org/support/users/tibber/)
 * (@tibber)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483462)
 * I’m having the same problem. Running 2.2.5 on WP 3.5.1. Installed both today 
   on a Linux box that is hosted, so I don’t know which version of Linux. PHP version
   5.3.19.
 * Any thoughts?
 * Thanks,
    Tom
 *  [tibber](https://wordpress.org/support/users/tibber/)
 * (@tibber)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483463)
 * I found how to configure the hosting to use PHP 5.4 on our site. Still get the
   same resultant php output.
 *  Plugin Author [kosinix](https://wordpress.org/support/users/kosinix/)
 * (@kosinix)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483465)
 * [@tibber](https://wordpress.org/support/users/tibber/) – Do you have a link to
   your site? Or perhaps a screenshot and the contents of the error. As of now, 
   I could not reproduce the bug. Thanks
 *  [tibber](https://wordpress.org/support/users/tibber/)
 * (@tibber)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483466)
 * [http://meganaritydesign.com/?page_id=80](http://meganaritydesign.com/?page_id=80)
 * This is a very simple page with just a slideshow on. All I “see” is the header
   line and `<img src="`
 * When I pull up the source I see the page ends with that incomplete tag.
 * Peace,
    Tom
 *  [Eddic](https://wordpress.org/support/users/eddic/)
 * (@eddic)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483472)
 * [@tibber](https://wordpress.org/support/users/tibber/) – Hi, I know what happened
   to you. I also met this problem today. Because this plugin will use GD(dynamic
   graphic lib) for handling pictures. You could try this.
 * Uncomment the line “extension=php_gd2.dll” in php.ini and restart PHP.
    Change:`;
   extension=php_gd2.dll` To: `extension=php_gd2.dll` Maybe you could check the 
   code in line 31 of “cyclone-slider-2/inc/class-image-resizer.php”
 *  Plugin Author [kosinix](https://wordpress.org/support/users/kosinix/)
 * (@kosinix)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483473)
 * Thanks Eddic for solving this puzzle! 🙂

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

The topic ‘Generates bad PHP code.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cyclone-slider-2_c67877.svg)
 * [Cyclone Slider](https://wordpress.org/plugins/cyclone-slider-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cyclone-slider-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cyclone-slider-2/)
 * [Active Topics](https://wordpress.org/support/plugin/cyclone-slider-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cyclone-slider-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cyclone-slider-2/reviews/)

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [kosinix](https://wordpress.org/support/users/kosinix/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/generates-bad-php-code/#post-3483473)
 * Status: resolved