-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template Compontent: No content Box #2207
Comments
Hi, I am getting no php error messages and I tried deactivating all the plugins except pods and I tried changing to the default twenty twelve theme and still the problem persists. I even tried deleting pods all together and reinstalled it from the wordpress plugins repository. Still same thing. There is no content box for the templates component. I can create a new template and edit it but the content box does not show up. You can access my computer if you want to check out the problem. |
I just fixed the problem: I don't know if this is as easy as it was but you need to check this out. In the Template.php file on line 81 you have: I just changed line 81 to: Please look into this; I am not a PHP expert. |
@asap247 I'm not sure why it is that way. There must be a reason, which I will try and figure out. Question for you: When this happened did you have WPDEBUG enabled? I just had this happen to me while testing something else. No content box, in the reference area I got this error:
This happened to me while testing 3.0-unstable and was resolved when I switched back to 2.X, so probably unrelated. I just wanted to confirm that you didn't see the same thing. |
'editor' is not enabled because we have a custom editor entirely for the page, via CodeMirror. @unknownnf may know more about why the editor isn't shown in your case. |
WPDebug is not enable as far as I know. There must be a problem with the editor for CodeMirror then. I really don't know what to do because I am getting no error message. The only fix would be to add 'editor' to the 'supports' array on line 81. |
@asap247 Did you ever get a chance to check if you were getting any errors with WP_DEBUG enabled or to test with no other plugins enabled? |
I disabled all other plugins except Pods and no content box in the template editor. The only thing that works is changing line 81 to add support for 'editor'. As far as WP-debug enabled. I get no error messages. I can give you access to my computer to check the problem If you want. |
What about with the default theme enabled? Also are you sure no JavaScript Console or PHP errors? Something has to either be ending execution before the editor is output or clashing with code mirror. Do you see the page footer when you're on the template editor? |
No errors, the page footer is still there ( Thank you for creating with WordPress.... Version number) - Footer. No javascritp console or php errors. Just no editor content box. |
@asap247 I know you said before that the issue is present with no other plugins active. What about with the default theme activated instead of you theme? I'm trying to eliminate possibilities as to why this is happening to you and switching to a theme we know works, would allow us to either rule out a theme issue or to start narrowing our focus on your theme. |
@asap247 can you post a screenshot of how it looks when there is no box? |
@asap247 Have you updated to Pods 2.4.1? Also, earlier you offered to let us login to your site. I think that's probably prudent at this point. Can you please create an admin account for me using the email address Josh@pods.io |
Another user is reporting the same issue here: http://pods.io/forums/topic/template-textarea-not-appearing I have requested debug info/ console check and will report back. |
(this is ChrisPalle from Pods forum, btw) There are a couple errors in the console. Will post that next. In the meantime, here's my debug information: Debug Information WordPress Version: 3.9.1 PHP Version: 5.5.10 MySQL Version: 5.5.34 Server Software: Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.10 mod_ssl/2.2.26 OpenSSL/0.9.8y DAV/2 mod_perl/2.0.8 Perl/v5.18.2 Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Session Save Path: /Applications/MAMP/tmp/php Session Save Path Exists: Yes Session Save Path Writeable: Yes Session Max Lifetime: 1440 WPDB Prefix: wp_ex3135 WP Multisite Mode: No WP Memory Limit: 40M Pods Network-Wide Activated: No Pods Install Location: /Applications/MAMP/htdocs/tuxtoolshed/theuxtoolshed.com/wp-content/plugins/pods/ Pods Tableless Mode Activated: No Pods Light Mode Activated: No Currently Active Theme: TheUXToolshed - DMS Child Theme Currently Active Plugins: Custom sidebars: 1.6 |
Also - I did a completely clean test install this morning. Installed nothing, but Pods. (no themes or anything, and same issues) Here're the JS errors from the console: Refused to execute JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. HEAD http://localhost:8888/wp-content/plugins/pods/ui/images/icon16@2x.png 404 (Not Found) retina.js?ver=1.3.0:139 HEAD http://localhost:8888/wp-content/plugins/pods/ui/images/pods-logo-notext-rgb-transparent@2x.png 404 (Not Found) retina.js?ver=1.3.0:139 HEAD http://localhost:8888/wp-content/themes/dms/dms/images/admin-icon@2x.png 404 (Not Found) retina.js?ver=1.3.0:139 |
Update: Just flushed browser cache, disabled all Chrome extensions, disabled all WP plugins, except Pods, flushed Pods cache. There are no more JS errors, but same issue. No template textarea. |
@wisdomandcraft Thank you for all of this information. Can you confirm that you get this issue with no other plugins active, and the default theme activated? I'm searching for a similarity between you and @asap247 but not seeing one. Different php version, browser and operating system. |
Thanks, @Shelob9. Yes. I can confirm. |
I get the same problem in chrome, Firefox and Internet explorer.
|
I was hoping a second user with this issue would make it more clear why it was happening, but now I'm more confused. Can you both please tell me about the environments you are experiencing this issue in? From your debug info, it looks like you are both testing locally, am I correct? Have you tried it on a remote host? |
Problem exists on both dev site and live site, even when using default themes. DEV SITE LIVE SITE |
@dweinlick Thanks for the debug info. It looks like you're testing both environments from the same browser on the same computer. Can you please try from a different browser on the same computer and from a different computer entirely? In each case, please check the console for errors. |
I have tested it in Chrome, FIrefox, Internet Explorer, and Opera. The same behavior exists browsers and computers. |
Looks like a CodeMirror conflict, another plugin/theme is loading another CodeMirror version on EVERY admin page, not just their own. |
I can confirm this is happening to us as well. Behavior we have observed: Content area AND Pod Reference selector box will randomly not load on a template. You can refresh the page 3 or 4 times and sometimes it will load. Non-scientifically I would say it loads 1 in 5 attempts. We have tried disabling all plugins other than pods and also using the default 2014 theme. We have also cleared the browser cache and turned off cache entirely. This is happening in Chrome and Firefox on the mac. There are no console errors being thrown when this happens. It seems that we can sometimes click on the main Pods menu tab and then click on templates and then edit template and get the content box to load, but once it loads once it will not load again for some time. Also, when we assign a Pod under Pod Reference and then click Update, that choice never sticks. This is on a remote server using Rackspace cloud sites, and appears to be unrelated to the browser, cache, plugins, or theme based on our troubleshooting. |
We're also seeing this problem, and we use Rackspace for hosting. Could that possibly be the source of the issue? |
No I don't think so, because I have a different hosting provider and the problem still persists.
|
Could we identify something those hosting providers have in common that might be the root of the problem? |
Update: I tried installing the plugin on another site that is on a different host, a LAMP VPS w/WHM and cPanel, no issues at all. Based on this it seems likely to be a conflict between pods and the server. I will keep looking for possible environment related conflicts. |
For any of you having this issue on Rackspace Cloud Sites hosting, this seems to have fixed the problem for me: http://www.rackspace.com/knowledge_center/article/cloud-sites-php-op-code-cache I added the line... ...to my .htaccess file and can now consistently get the Template content editor area and Pod Reference to load. Use at your own risk, I don't have any advanced knowledge as to why this flag would be required to run pods effectively, nor any potential side effects to your sites. This may also work for other virtualized hosting setups, no way to know for sure. We host about 60 sites in this environment with a variety of plugins and this is the first time we've had to enable this flag so hopefully this info will prove helpful for the ongoing development of pods and perhaps a coding solution can be found that will allow it to work without having to make this adjustment. |
A user in the forums reports they resolved this issue with their hosting provider and were given this message:
|
That doesn't sound like a good solution, nor recommending 5.4 or below. |
@MODOKmatt @dweinlick @waywardsister @floede @jaroc We are looking for access to a server that has this issue present on it, so we can debug further, so we can investigate the strong possibility that a problem xcache configuration is to blame. One of the reasons this has taken so long to fix is that no member of our team has been able to reproduce the issue. If anyone is willing to allow us access, please email me at Josh@pods.io or send me a direct message in Pods Slack |
Hi,
In the Template component field, I don't have a content box to enter any content. I used to have one but not anymore. I checked the screen options on top and there is no field to apply there either. I have the following information saved, I tried disabling all the plugins except pods and still no effect, its the same thing in all browsers:
Debug Information
WordPress Version: 3.9.1
PHP Version: 5.2.17
MySQL Version: 5.1.73
Server Software: Apache
Your User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Session Save Path: /tmp
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
WPDB Prefix: wp_
WP Multisite Mode: No
WP Memory Limit: 40M
Pods Network-Wide Activated: No
Pods Install Location: /home/metro/public_html/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: Genesis Child Theme
Currently Active Plugins:
Captcha: 4.0.1
Contact Form 7: 3.8.1
Content Aware Sidebars: 2.2.1
GARD Pro: 2.4.1
heatmap for WordPress: 0.2.1
Pods - Custom Content Types and Fields: 2.4
Preserved HTML Editor Markup: 1.5
Rank Tracker: 1.9
Redirection: 2.3.4
SEO Booster 2: 2.0.8
Wordfence Security: 5.0.9
WordPress Front-end Editor: 0.10
Wordpress Popular Posts: 2.3.7
WordPress SEO: 1.5.3.2
WP Lightbox 2: 2.28.8.5
WPSocialite: 2.4.1
The text was updated successfully, but these errors were encountered: