Title: Switch to PHP5: cannot browse folder
Last modified: August 19, 2016

---

# Switch to PHP5: cannot browse folder

 *  [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/)
 * Hi,
 * using the nextgen gallery plugin with PHP4 I was able to use the import image
   folder function, which lets you browse through a subfolder of the gallery folder
   in your wp installation.
 * Now that I have switched to PHP5 I cannot browse anymore. The rectangle, which
   has shown the folders previously remains empty. Switching back to PHP4 I can 
   see the folders again.
 * Do you know what might cause this?

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

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669554)
 * Interesting, here it wirks. Please post your server settings
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669565)
 * * Operating System : Linux (64 Bit)
    * Server : Apache/2.2.3 (Debian) DAV/2 mod_fastcgi/
   2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c * Memory usage : 40.57 MByte * MYSQL Version:
   5.0.32-Debian_7etch6-log * SQL Mode : Not set * PHP Version : 5.2.0-8+etch13 *
   PHP Safe Mode : Off * PHP Allow URL fopen : On * PHP Memory Limit : 256M * PHP
   Max Upload Size : 10M * PHP Max Post Size : 8M * PCRE Backtracking Limit : 500000*
   PHP Max Script Execute Time : 30s * PHP Exif support : Yes ( V1.4 ) * PHP IPTC
   support : Yes * PHP XML support : Yes
 * Graphic Library
 *  * GD Version : 2.0 or higher
    * FreeType Support : Yes * FreeType Linkage : 
   with freetype * T1Lib Support : Yes * GIF Read Support : Yes * GIF Create Support:
   Yes * JPG Support : Yes * PNG Support : Yes * WBMP Support : Yes * XPM Support:
   No * XBM Support : No * JIS-mapped Japanese Font Support : No
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669567)
 * By the way, I cannot create thumbnails either. Perhaps this is related to the
   bug above.
 * The thumbnail problem occurs in PHP4 and PHP5. CPU goes to 100% and an error 
   occurs, just stating “1”.
 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669582)
 * Maybe you hit the memory limit, check if you can upload small images (resolution,
   not size)
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669594)
 * Nope, small images don’t work neither. And I have set the memory limit in gd.
   thumbnail.inc to 200M! 🙁
 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669598)
 * What you set with the script and what is allowed from your hoster is different.
   Check with the plugin WP-Memory-Usage your limit, I have no other idea then to
   search in this direction
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669602)
 * Turns out it was the php.ini memory limit after all. Increasing the memory limit
   in the gd.thumbnail.inc did not work. Unfortunately debugging this was a bit 
   hard, because the function that read the file contents was suppressing all error
   messages and it was not easy to trace it to this point.
    With the increased memory
   limit, creating thumbnails works with PHP4, however PHP5 still shows various 
   problems throughout wordpress, not specific to the gallery.

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

The topic ‘Switch to PHP5: cannot browse folder’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/switch-to-php5-cannot-browse-folder/#post-1669602)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
