Title: Plugin loading php template
Last modified: December 20, 2020

---

# Plugin loading php template

 *  Resolved [andrej_uduc](https://wordpress.org/support/users/andrej_uduc/)
 * (@andrej_uduc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-loading-php-template/)
 * I’m trying Genesis Custom Blocks for the first time and have an issue. I can’t
   figure out WHEN the php file is loaded. I made some errors in coding, replaced
   the template php file on webserver, but it seems like the old version is still
   being used (when I check the webpage source it shows some code that is impossible
   with the new php template file. So it seems it’s still using the old version 
   somehow.
    I removed the block from the page, put it back, reloaded, re… whatever
   I can think of. Any tips?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-loading-php-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [andrej_uduc](https://wordpress.org/support/users/andrej_uduc/)
 * (@andrej_uduc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-loading-php-template/#post-13814501)
 * Update
    I deleted the file on FTP, reuploaded it (filezilla) … and it had a whitespace
   before the filename (doesn’t have that in the original windows file). I could
   rename it, removing the space. But when I dowloaded it back to the windows machine,
   it was the old version of php all over again. Happened several times. I’m just
   stuck and cannot replace the template php file.
 *  Plugin Contributor [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-loading-php-template/#post-13815385)
 * Hi [@andrej_uduc](https://wordpress.org/support/users/andrej_uduc/),
    Thanks 
   a lot for using this.
 * Sometimes PHP caches `file_exists()`. Could you try adding `clearstatcache()`
   here:
    [https://github.com/studiopress/genesis-custom-blocks/blob/15dc077cb5c422174157495e761d0f696984dd5f/php/Util.php#L77](https://github.com/studiopress/genesis-custom-blocks/blob/15dc077cb5c422174157495e761d0f696984dd5f/php/Util.php#L77)
 * …though of course not in production.
 *  Plugin Contributor [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-loading-php-template/#post-13824033)
 * Closing, but feel free to follow up if this is still an issue.

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

The topic ‘Plugin loading php template’ is closed to new replies.

 * ![](https://ps.w.org/genesis-custom-blocks/assets/icon.svg?rev=2373248)
 * [Genesis Custom Blocks](https://wordpress.org/plugins/genesis-custom-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-custom-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-custom-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-custom-blocks/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-loading-php-template/#post-13824033)
 * Status: resolved