Title: Can&#8217;t create template
Last modified: February 20, 2021

---

# Can’t create template

 *  [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/)
 * Hello,
 * I can’t create templates for plugins that don’t initially have a pot file.
    The
   button “Create template” remains disabled.
 * I get the following error in the browser console :
 *     ```
       Uncaught TypeError: d is undefined
           p https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.0:12
           jQuery 7
               c
               fireWith
               l
               o
               send
               ajax
               ajax
           p https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.0:13
           post https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.0:16
           q https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.0:189
           init https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.0:189
           <anonymous> https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/potinit.js?ver=2.5.0:1
           <anonymous> https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/potinit.js?ver=2.5.0:1
       ```
   
 * Thanks for your help.
    Kaudaj

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/cant-create-template/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-create-template/page/2/?output_format=md)

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14077884)
 * That’s an odd one. Possibly an error during file system connect that isn’t being
   handled properly. i.e. an error handling an error.
 * Can you see from your Network inspector what the response data is from the Ajax
   request?
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14086068)
 * Hello Tim,
 * I think you’re talking about this request : `admin-ajax.php?_fs_blog_admin=true`
   
   with following parameters : `path=plugins%2Frestaurant-for-woocommerce%2Flanguages%
   2Fwc-rms.pot&auth=create&action=loco_json&route=fsConnect&loco-nonce=7ed4c64321`
 * I get the following response for this one :
 *     ```
       {
       	"data": {
       		"authed": true,
       		"valid": [],
       		"creds": [],
       		"method": "direct",
       		"success": "Connected to remote file system",
       		"warning": "This file may be overwritten or deleted when you update WordPress"
       	}
       }
       ```
   
 * By the way, for the main request, so this one :
    `bundle=restaurant-for-woocommerce%
   2Frestaurant-management-system.php&domain=wc-rms&page=loco-plugin&action=xgettext`
 * I have this warning appearing as a notice :
    `JavaScript disabled: Loco Translate
   requires JavaScript for most functions to work as expected.`
 * But I get it only in the Network inspector, so I didn’t see it before…
    Should
   I check if it is a plugin conflict ?
 * Best regards.
    Kaudaj
 * PS : I can’t figure out how uploading images in WordPress posts so I put everything
   as code tags. Sorry if it’s not as readable as screenshots…
    -  This reply was modified 5 years, 2 months ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14089413)
 * (1) I don’t know what `_fs_blog_admin=true` is, but possibly this is added by
   some other plugin.
 * (2) The Ajax response looks correct, so I don’t know why you’d get an error from
   this.
 * (3) You should never see “JavaScript disabled” on screen unless JavaScript is
   disabled, which it isn’t. If you only see this in the Network inspector, that’s
   fine. You can ignore this.
 * I still don’t know why you’re getting an error. Are you in a position to install
   development releases to check some things?
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14090128)
 * Deactivating _WP Rocket_ plugin solved the issue.
    I’m not using the last version
   so maybe my bad… I will contact them if the issue persists after updating.
 * Thanks for your time.
    Kaudaj
    -  This reply was modified 5 years, 2 months ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
    -  This reply was modified 5 years, 2 months ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14090321)
 * Thanks for letting me know.
 * You still shouldn’t get a script error though. Is there anything I specifically
   need to do t replicate this? I don’t see WP Rocket in the WordPress plugin directory.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cant-create-template/#post-14090602)
 * Ah, I should have specified that _WP Rocket_ is a paid plugin. You can get more
   details here : [https://wp-rocket.me/](https://wp-rocket.me/) but you’ll not 
   be able to replicate this unless you pay for it.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14224857)
 * Hi Tim,
 * I’d like to come back to you to know if you could share me the non-minified JS
   version of pub/js/min/admin.js at [info@kaudaj.com](https://wordpress.org/support/topic/cant-create-template/info@kaudaj.com?output_format=md).
   I need to fix the compatibility issue with WP Rocket and I don’t think that their
   support will be able to debug it with the minified JS version.
 * Thanks.
    Kaudaj
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14227780)
 * Hello.
 * Firstly, you may find this particular script error is fixed under the current
   [development version](https://localise.biz/wordpress/plugin/developers).
 * Someone else [reported a similar issue.](https://wordpress.org/support/topic/sync-issue-4/)
   In their case, it was the absence of the xhr.responseText property which I had
   taken for granted as always being a string. Please try the dev version and see
   if your issue was related to this too.
 * I am unable to send you an unminified admin.js because it is built from the core
   Loco platform code base. You will however find that from now on the minified 
   source has line breaks so you can post stack traces here and I will be better
   positioned to debug the library code.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14228925)
 * Hello,
 * Thanks for your support.
    I installed the development version and I still get
   a javascript error :
 *     ```
       Uncaught TypeError: e is undefined
           n https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.4.6:12
           jQuery 7
           n https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.4.6:13
           post https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.4.6:16
           H https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.4.6:1
           save https://new-wok-nice.fr/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.4.6:1
           jQuery 2
       admin.js:12:414
       ```
   
 * I don’t know if it’s the same one because the object is ‘e’ instead of ‘d’ but
   it looks similar.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14228961)
 * Are you sure you installed the dev version? It doesn’t look like it. Two things
   are wrong:
 * Your .js URLs show vers=2.4.6. They should show 2.5.3-dev.
 * Plus the line numbers are all wrong.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14228993)
 * Yep, I thought it was weird too but I downloaded it from the official Loco Translate
   page : [https://wordpress.org/plugins/loco-translate/advanced/#download-previous-link](https://wordpress.org/plugins/loco-translate/advanced/#download-previous-link)
   as it is stated in the page you gave me : [https://localise.biz/wordpress/plugin/developers](https://localise.biz/wordpress/plugin/developers)…
   
   I downloaded it as a zip because I don’t have ssh access with my hosting yet.
   Is git necessary to get the last Loco version?
 * **EDIT**: Anyway I downloaded the zip from Git repository. I’ll test it right
   now.
    -  This reply was modified 5 years, 1 month ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
    -  This reply was modified 5 years, 1 month ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
    -  This reply was modified 5 years, 1 month ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
    -  This reply was modified 5 years, 1 month ago by [kaudaj](https://wordpress.org/support/users/kaudaj/).
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14229076)
 * There is nothing wrong with that link. Select Development Version and it will
   download from the WordPress trunk. I don’t know how you managed to download v2.4.6
   by accident. I can’t reproduce that problem.
 * And no, you don’t need Git. The zip is fine.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14229117)
 * I retried and selecting “Development version” leads to 2.4.6 version download
   for me.
 * Anyway I get a different result with dev version :
 *     ```
       Ajax failure for fsConnect 
       Object { status: 0, error: "error", message: "", output: "" }
       admin.js:276:7
       Rappelez le texte suivant lorsque vous signalerez un problème:
       ----
       Status 0 "Erreur inconnue" (Unknown type 0 bytes)
       Blank response from server
       ==== admin.js:276:7
       ```
   
 * It happened on the plugin translations editor. I get the same for “save” route.
   
   Let me know if you need an english translation of the french log messages.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14229146)
 * Ok. So the script error is fixed. Seeing this error shows that it’s working.
 * However, as per the other person’s report you still have a problem with the Ajax
   operation, but this is not a bug in the JavaScript.
 * Please work though the FAQ on blank server responses: [https://localise.biz/wordpress/plugin/faqs/blank-page](https://localise.biz/wordpress/plugin/faqs/blank-page)
 * Note the paragraph that mentions `status 0`. This possibly indicates your browser
   is refusing to send the data. Ad blockers. Security extensions etc.. but I can
   only make guesses.
 *  Thread Starter [kaudaj](https://wordpress.org/support/users/kaudaj/)
 * (@kaudaj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/#post-14229502)
 * Disabling WP Rocket solves again the issue.
 * This is not a serious problem because the translations are saved and the loading
   is not infinite as before. But I’ll still contact WP Rocket to understand the
   problem.
 * Thanks for the help !
    I’ll update the thread if WP Rocket makes it compatible.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/cant-create-template/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-create-template/page/2/?output_format=md)

The topic ‘Can’t create template’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

## Tags

 * [template](https://wordpress.org/support/topic-tag/template/)

 * 16 replies
 * 2 participants
 * Last reply from: [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/cant-create-template/page/2/#post-14229597)
 * Status: not resolved