Title: Samutz's Replies | WordPress.org

---

# Samutz

  [  ](https://wordpress.org/support/users/samutz/)

 *   [Profile](https://wordpress.org/support/users/samutz/)
 *   [Topics Started](https://wordpress.org/support/users/samutz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/samutz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/samutz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/samutz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/samutz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/samutz/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: The Events Calendar] CSS template override](https://wordpress.org/support/topic/plugin-the-events-calendar-css-template-override/)
 *  [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-the-events-calendar-css-template-override/#post-1449793)
 * What I did was copy events.css to my theme’s folder, then added this after <?
   php wp_head(); ?>
 * `<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/events.
   css" type="text/css" media="screen" />`
 * It’s a little bit of a waste of resources because you’re loading the original
   css first, then loading the override one. But you don’t have to edit the original
   this way.
 * Edit: Also make sure you copy the images to your theme folder, or fix the paths
   in your override css to point to them.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] singlepic tag stopped working](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/)
 *  Thread Starter [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [18 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/#post-748138)
 * I found the problem. And I feel so stupid now.
 * One of the plugins I rely on had extra line breaks in it. Four to be exact.
 * What happened is that the main file of plugin (that eventually gets inluded by
   WP scripts) had places like this in it:
 *     ```
       ?>
   
       <?php
       ```
   
 * Once I removed those, everything start working fine again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] singlepic tag stopped working](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/)
 *  Thread Starter [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [18 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/#post-748133)
 * After a lot of screwing around and digging through the code. I found that the
   problem isn’t actually with NGG, but with wordpress itself.
    The reason the images
   aren’t properly displayed is that something is puting four extra bytes at the
   beginning of the nggshow.php file when it tries to generate an image. These bytes
   are OA OA OA OA. Without these bytes the image displays fine.
 * After more digging, I found that including wp-config.php at the beginning of 
   nggshop.php is what’s causing this. If I navigate to wp-config.php in my browser,
   I get a blank page of course, but when I save this blank page and open it in 
   a hex editor, it get those four bytes by themselves.
    I removed the trailing 
   line break at the bottom of wp-config’s code, but it still outputs the four bytes.
   So I looked at the wp-settings.php file it includes and it also had a trailing
   line break, which I removed. But wp-settings.php also includes/requires other
   files, and those files include/require other files, etc. So I’m basically stuck
   combing through every single file until I find out which file is causing the 
   four bytes.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] singlepic tag stopped working](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/)
 *  Thread Starter [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [18 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/#post-748066)
 * JPG and PNG don’t work either:
 * Here’s a page with all three: JPG, GIF, PNG
    [http://www.samutz.com/blargh/dumpster/test-page/](http://www.samutz.com/blargh/dumpster/test-page/)
   Each one using [singlepic=_id_]
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] singlepic tag stopped working](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/)
 *  Thread Starter [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [18 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/#post-748031)
 * Yea, it loads fine for the direct image. I also checked all the permissions for
   the folder, sub-folders, and files that I keep the images in.
 * Here’s the one from my first post:
    [http://www.samutz.com/blargh/wp-content/dumpster/gtaforums/gtasa_steveo.gif](http://www.samutz.com/blargh/wp-content/dumpster/gtaforums/gtasa_steveo.gif)
   It also appears fine in the thickbox popup.
 * Thumbnails in other places are working fine too.
    Like here for example (a gallery
   page): [http://www.samutz.com/blargh/dumpster/?album=1&gallery=7](http://www.samutz.com/blargh/dumpster/?album=1&gallery=7)
   The 4th pic from the left is the one from the page in my first post.
 * It’s only the singlepic ones that don’t work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] singlepic tag stopped working](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/)
 *  Thread Starter [Samutz](https://wordpress.org/support/users/samutz/)
 * (@samutz)
 * [18 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-singlepic-tag-stopped-working/#post-747971)
 * I just tried deleting the plugin then reinstalling it from the download on alexrabe.
   boelinger.com, but it still doesn’t work.

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