Title: Plugin: NextGEN Gallery Problem fatal error when uploading
Last modified: August 19, 2016

---

# Plugin: NextGEN Gallery Problem fatal error when uploading

 *  [gspeedracer](https://wordpress.org/support/users/gspeedracer/)
 * (@gspeedracer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/)
 * Hello
    we just upgraded our wordpress to 2.8 and also the nextgen gallery to 
   1.3.5 after upgrading we were getting a PHP error that was related to using php
   4. we resolved it by inserting AddType x-mapp-php5 .php AddHandler x-mapp-php5.
   php into the .htaccess file
 * this corrected that problem but pointed out another one. when uploading images
   we get this error now. and thumbnail images arn’t being generated on the gallery
   page
 * Fatal error: only variables can be passed by referance in /homepages/34/d2599013462/
   htdocs/seafoodpunch/wp-content/plugins/nextgen-gallery/lib/meta.php on line 335
 * i have downgraded upgraded reset, removed done everything i can think of.
    im
   not a coder so its now byond my limits, please help.
 * below are my system stats
    Operating System : Linux Server : Apache Memory usage:
   11.58 MByte MYSQL Version : 5.0.81-log SQL Mode : Not set PHP Version : 5.2.10
   PHP Safe Mode : Off PHP Allow URL fopen : Off PHP Memory Limit : 40M PHP Max 
   Upload Size : 20M PHP Max Post Size : 8M PHP Max Script Execute Time : 50000s
   PHP Exif support : Yes ( V1.4 ) PHP IPTC support : Yes PHP XML support : Yes

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

 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172157)
 * Hi,
 * Check with these options:
 * – Assign 766 recursive permissions to wp-contents folder.
    – Upgrade your wordpress
   to the latest version – increase the memory and upload limit for PHP either for
   your domain or from the server.
 * Thanks,
 * Shane G.
 *  Thread Starter [gspeedracer](https://wordpress.org/support/users/gspeedracer/)
 * (@gspeedracer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172291)
 * making permissions 766 broke my site it took me forever to figure out that thats
   what caused it. my wordpress is now to the newest version. i have not upgraded
   the memory, but i might have fixed it, and will try that later if i have not
 *  Thread Starter [gspeedracer](https://wordpress.org/support/users/gspeedracer/)
 * (@gspeedracer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172304)
 * ok so i worked on the site more.
 * im still having problems where the images are uploaded but the thumbnails are
   not being created.
 * my host wont allow me to upgrade the php memory max limit, 20mb is their max
 * im still getting this dam message, ive tried importing, uploading, uploading .
   zip still this error
 * Fatal error: Only variables can be passed by reference in /homepages/34/d259013462/
   htdocs/seafoodpunch/wp-content/plugins/nextgen-gallery/lib/meta.php on line 335
 * any ideas, need help, the site hits are suffering and my artist is pissed.
 * thanks
    greg
 *  Thread Starter [gspeedracer](https://wordpress.org/support/users/gspeedracer/)
 * (@gspeedracer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172305)
 * oh yeah i upgraded the site to wordpress 2.8.4 btw
 *  [AidenVennis](https://wordpress.org/support/users/aidenvennis/)
 * (@aidenvennis)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172363)
 * I have the same problem right now. It al worked well with previous versions of
   NextGen Gallery, but now I get the nextgen-gallery/lib/meta.php on line 376 error!
   Any solution for this?
 * Operating System : FreeBSD (32 Bit)
    Server : Apache/2 Memory usage : 12.89 MByte
   MYSQL Version : 5.1.37 SQL Mode : Not set PHP Version : 5.2.12 PHP Safe Mode :
   Off PHP Allow URL fopen : On PHP Memory Limit : 128M PHP Max Upload Size : 40M
   PHP Max Post Size : 40M PHP Output Buffer Size : N/A PHP Max Script Execute Time:
   30s PHP Exif support : Yes ( V1.4 ) PHP IPTC support : Yes PHP XML support : 
   Yes
 *  [AidenVennis](https://wordpress.org/support/users/aidenvennis/)
 * (@aidenvennis)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172364)
 * Btw, this is with the new WordPress 2.9.1 and with a fresh install.
 *  [AidenVennis](https://wordpress.org/support/users/aidenvennis/)
 * (@aidenvennis)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172365)
 * Oke, found something about this!
 * This error only happens when I try to upload a JPG that was created out of Adobe
   Illustrator. When I copy my creation from Illustrator to Photoshop and save it
   there as a JPG only then I can upload it to Nextgen Gallery without an error.
 * I looked trough the meta.php, but I couldn’t find any fast solution for this 
   because I don’t have the qualifications for it. I think however that it has to
   do with xmpTags array and the information it retrieves from the Illustrator file.
 * So, temporary workaround for me is to copy out of Illustrator to Photoshop (don’t
   try to open the created JPG in Photoshop and save it again, it doesn’t seem to
   help) and save it from there.

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

The topic ‘Plugin: NextGEN Gallery Problem fatal error when uploading’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [AidenVennis](https://wordpress.org/support/users/aidenvennis/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-26/#post-1172365)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
