Title: pbm.php 403 error
Last modified: August 22, 2018

---

# pbm.php 403 error

 *  Resolved [dgsjm](https://wordpress.org/support/users/dgsjm/)
 * (@dgsjm)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pbm-php-403-error/)
 * I’m getting a 403 error for /wp-content/plugins/photoblocks-grid-gallery/public/
   pbm.php.
    Folder permissions are set to 755 and permission for the file are 644.
   I tried deactivating and reactivating, but no luck. Any idea what’s going wrong?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpbm-php-403-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Diego](https://wordpress.org/support/users/greentreelabs/)
 * (@greentreelabs)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10617490)
 * Hi,
 * pbm.php is the script that resizes the images, sometimes the hosting providers
   block this kind of script. If permissions are correct then I suggest to contact
   your provider, maybe they blacklisted it.
 *  [Diego](https://wordpress.org/support/users/greentreelabs/)
 * (@greentreelabs)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10620256)
 * I’ve also updated the plugin, there’s a new option that bypass the resize script.
   Try choosing “Don’t resize” from the “Resize images” option in Gallery > Advanced.
 *  Thread Starter [dgsjm](https://wordpress.org/support/users/dgsjm/)
 * (@dgsjm)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10629443)
 * Thank you for your replies!
    That folder/file does not seem to be blacklisted
   by my host. Below is what my host said, although it doesn’t seem very useful.
   Any other ideas?
 * —–
 * Thank you for reaching out to us for assistance looking into the Forbidden Error
   being presented via [http://kallyas.dgwebbeta.com/wp-content/plugins/photoblocks-grid-gallery/public/index.php](http://kallyas.dgwebbeta.com/wp-content/plugins/photoblocks-grid-gallery/public/index.php)
 * The appears to be related to the WordPress Plugin found from [https://wordpress.org/plugins/photoblocks-grid-gallery/](https://wordpress.org/plugins/photoblocks-grid-gallery/)
 * … the Readme contains this specific tidbit if receiving a 403 Forbidden Error
   that may be related:
 * ———————————————————–
 * = Images fail to loading
 * …getting 403 errors then try adding these lines to your .htaccess file in the
   WordPress installation folder. Revert the modification if it has no effect and
   contact the hosting’s support.
 * <IfModule mod_security.c>
    SecFilterEngine Off SecFilterScanPOST Off </IfModule
   >
 * ———————————————————-
 * So I did temporarily try adding that to the “…/kallyas/.htacces” file but found
   it did not correct the issue, so I had reverted that.
 * Overlooking similar Plugins such as the instangram-feed permissions, I agree 
   the folder level permissions appear to be identical, however I also am getting
   a 403 when attempting to navigate those areas for example: [http://kallyas.dgwebbeta.com/wp-content/plugins/instagram-feed/instagram-feed.php](http://kallyas.dgwebbeta.com/wp-content/plugins/instagram-feed/instagram-feed.php)
 * ———————————————————–
 * [root instagram-feed]# ls -la
    total 264 drwxr-xr-x 6 [redacted] [redacted] 4096
   Aug 8 13:58 . drwxr-xr-x 16 [redacted] [redacted] 4096 Aug 24 13:21 .. drwxr-
   xr-x 2 [redacted] [redacted] 4096 Aug 8 13:58 css -rw-r–r– 1 [redacted] [redacted]
   18431 Aug 8 13:58 gpl-2.0.txt drwxr-xr-x 2 [redacted] [redacted] 4096 Aug 8 13:
   58 img -rw-r–r– 1 [redacted] [redacted] 133412 Aug 8 13:58 instagram-feed-admin.
   php -rw-r–r– 1 [redacted] [redacted] 41982 Aug 8 13:58 instagram-feed.php drwxr-
   xr-x 2 [redacted] [redacted] 4096 Aug 8 13:58 js drwxr-xr-x 2 [redacted] [redacted]
   4096 Aug 8 13:58 languages -rw-r–r– 1 [redacted] [redacted] 40207 Aug 8 13:58
   README.txt -rw-r–r– 1 [redacted] [redacted] 420 Aug 8 13:58 wpml-config.xml
 * [root instagram-feed]# cd ..
    [root plugins]# cd photoblocks-grid-gallery/ [root
   photoblocks-grid-gallery]# ls -la total 72 drwxr-xr-x 8 [redacted] [redacted]
   4096 Aug 24 13:21 . drwxr-xr-x 16 [redacted] [redacted] 4096 Aug 24 13:21 .. 
   drwxr-xr-x 5 [redacted] [redacted] 4096 Aug 24 13:21 admin drwxr-xr-x 6 [redacted][
   redacted] 4096 Aug 24 13:21 freemius drwxr-xr-x 2 [redacted] [redacted] 4096 
   Aug 24 13:21 includes -rw-r–r– 1 [redacted] [redacted] 26 Aug 24 13:21 index.
   php drwxr-xr-x 2 [redacted] [redacted] 4096 Aug 24 13:21 languages -rw-r–r– 1[
   redacted] [redacted] 18091 Aug 24 13:21 LICENSE.txt -rw-r–r– 1 [redacted] [redacted]
   3694 Aug 24 13:21 photoblocks.php drwxr-xr-x 6 [redacted] [redacted] 4096 Aug
   25 14:04 public -rw-r–r– 1 [redacted] [redacted] 11437 Aug 24 13:21 README.txt
   drwxr-xr-x 4 [redacted] [redacted] 4096 Aug 24 13:21 vendor
 * ————————————————————
 * So if that is working as expected, I would be hesitant to make permission changes
   with out knowing what we should adjust exactly.
 * So I am wondering a few possibilities:
 * a) Maybe you have to be authenticated as the WordPress Admin User to see?
    b)
   The Plugin needs to be activated?
 *  [Diego](https://wordpress.org/support/users/greentreelabs/)
 * (@greentreelabs)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10632255)
 * Well,
 * the permissions should be given to
 * **photoblocks-grid-gallery/public/cache**
 * otherwise try to disable the resize script as described in my previous answer.
 *  [kunalvirk](https://wordpress.org/support/users/kunalvirk/)
 * (@kunalvirk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10725192)
 * Every setting is done and all the folders are set to 755 and files to 644…weird
   thing is at first load the forbidden error 403 is appearing on random order but
   on the second load all images are appearing fine. Another weird thing is on resizing
   browser window again this forbidden thing happens in random order…..
 * What could it be?
 * Please help me out here.
 * Thanks,
    Kunal Virk
 *  [Diego](https://wordpress.org/support/users/greentreelabs/)
 * (@greentreelabs)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10726645)
 * In a previous case a user reported his hosting provider blacklisted that script,
   you can ask to your provider if they did the same thing.
    Otherwise you’ll need
   to disable the image resizing from Gallery > Advanced settings.
 * Cheers
    Diego

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

The topic ‘pbm.php 403 error’ is closed to new replies.

 * ![](https://ps.w.org/photoblocks-grid-gallery/assets/icon.svg?rev=3184340)
 * [Gallery PhotoBlocks](https://wordpress.org/plugins/photoblocks-grid-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photoblocks-grid-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photoblocks-grid-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photoblocks-grid-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photoblocks-grid-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photoblocks-grid-gallery/reviews/)

## Tags

 * [403 Forbidden](https://wordpress.org/support/topic-tag/403-forbidden/)

 * 6 replies
 * 3 participants
 * Last reply from: [Diego](https://wordpress.org/support/users/greentreelabs/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/pbm-php-403-error/#post-10726645)
 * Status: resolved