Skip to content
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

Closed
asap247 opened this issue May 30, 2014 · 55 comments
Closed

Template Compontent: No content Box #2207

asap247 opened this issue May 30, 2014 · 55 comments
Assignees

Comments

@asap247
Copy link

asap247 commented May 30, 2014

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

@Shelob9
Copy link
Contributor

Shelob9 commented May 30, 2014

Possibly related to #2156 or #2188

Can you please check your console for errors? Also please try this with out any other plugins activated.

@Shelob9 Shelob9 added this to the Pods 3.0 milestone May 30, 2014
@asap247
Copy link
Author

asap247 commented May 30, 2014

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.

@asap247
Copy link
Author

asap247 commented May 30, 2014

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:
'supports' => array( 'title', 'author', 'revisions' ),

I just changed line 81 to:
'supports' => array( 'title', 'editor', 'author', 'revisions' ),

Please look into this; I am not a PHP expert.

@Shelob9
Copy link
Contributor

Shelob9 commented May 31, 2014

@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:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8225 bytes) in /srv/www/wordpress-default/wp-content/plugins/pods-test/components/Templates/includes/functions-pod_reference.php on line 44

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.

@sc0ttkclark
Copy link
Member

'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.

@asap247
Copy link
Author

asap247 commented May 31, 2014

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.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 7, 2014

@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?

@asap247
Copy link
Author

asap247 commented Jun 7, 2014

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.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 7, 2014

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?

@Shelob9 Shelob9 self-assigned this Jun 7, 2014
@asap247
Copy link
Author

asap247 commented Jun 8, 2014

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.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 8, 2014

@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.

@DavidCramer
Copy link
Contributor

@asap247 can you post a screenshot of how it looks when there is no box?

@asap247
Copy link
Author

asap247 commented Jun 20, 2014

template

The problem still occurs when no plugins are active and with the default theme as well.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 21, 2014

@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

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 22, 2014

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.

@wisdomandcraft
Copy link

(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
DMS Professional Tools: 1.6.2
ExpressCurate: 1.2.3
Filtering: 1.7.2
PageLines Updater: 1.1
PLNextBox: 1.1
Pods - Custom Content Types and Fields: 2.4.2
Pods Frontier Auto Template: 1.1.0
Press This: 0.0.4.3
WP Retina 2x: 2.0.2

@wisdomandcraft
Copy link

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.
tinymce.min.js:3
(anonymous function) tinymce.min.js:3
c.run tinymce.min.js:3
c.add tinymce.min.js:3
N.init tinymce.min.js:8
(anonymous function) tinymce.min.js:8
(anonymous function) tinymce.min.js:3
i tinymce.min.js:3
h tinymce.min.js:3
(anonymous function) tinymce.min.js:3
n tinymce.min.js:3

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.
inject.htm:1

HEAD http://localhost:8888/wp-content/plugins/pods/ui/images/icon16@2x.png 404 (Not Found) retina.js?ver=1.3.0:139
RetinaImagePath.check_2x_variant retina.js?ver=1.3.0:139
RetinaImage retina.js?ver=1.3.0:148
context.onload retina.js?ver=1.3.0:54

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
RetinaImagePath.check_2x_variant retina.js?ver=1.3.0:139
RetinaImage retina.js?ver=1.3.0:148
context.onload retina.js?ver=1.3.0:54

HEAD http://localhost:8888/wp-content/themes/dms/dms/images/admin-icon@2x.png 404 (Not Found) retina.js?ver=1.3.0:139
RetinaImagePath.check_2x_variant retina.js?ver=1.3.0:139
RetinaImage retina.js?ver=1.3.0:148
context.onload

@wisdomandcraft
Copy link

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.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 23, 2014

@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.

@wisdomandcraft
Copy link

Thanks, @Shelob9. Yes. I can confirm.
I did a fresh install in a new database. Installed only Pods. Turned off ALL Chrome Extensions. Flushed all cache.

@asap247
Copy link
Author

asap247 commented Jun 23, 2014

I get the same problem in chrome, Firefox and Internet explorer.

On Jun 23, 2014, at 10:34 AM, wisdomandcraft notifications@github.com wrote:

Thanks, @Shelob9. Yes. I can confirm.
I did a fresh install in a new database. Installed only Pods. Turned off ALL Chrome Extensions. Flushed all cache.


Reply to this email directly or view it on GitHub.

@Shelob9
Copy link
Contributor

Shelob9 commented Jun 23, 2014

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?

@dweinlick
Copy link

Problem exists on both dev site and live site, even when using default themes.

DEV SITE
WordPress Version: 3.9.2
PHP Version: 5.3.20
MySQL Version: 5.1.61
Server Software: Apache/2.2
Your User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36
Session Save Path: /var/lib/php/session
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
WPDB Prefix: dfl_
WP Multisite Mode: Yes
WP Memory Limit: 64M
Pods Network-Wide Activated: Yes
Pods Install Location: /mnt/stor0-wc2-dfw1/468595/818666/dev.dfl.org/web/content/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: DFL
Currently Active Plugins:
Pods – Custom Content Types and Fields: 2.4.3

LIVE SITE
WordPress Version: 3.8.4
PHP Version: 5.3.20
MySQL Version: 5.1.61
Server Software: Apache/2.2
Your User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36
Session Save Path: /var/lib/php/session
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
WPDB Prefix: dfl_
WP Multisite Mode: Yes
WP Memory Limit: 64M
Pods Network-Wide Activated: Yes
Pods Install Location: /mnt/stor0-wc2-dfw1/468595/818666/www.dfl.org/web/content/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: DFL
Currently Active Plugins:
Admin Menu Editor Pro: 1.82
Akismet: 3.0.0
All-in-One Event Calendar by Time.ly: 2.1.4
All-in-One Event Calendar CSV Feed by Time.ly: 1.0.3
All-in-One Event Calendar Extended Views by Time.ly: 1.1.0
All-in-One Event Calendar Frontend Submissions by Time.ly: 1.1.0
All-in-One Event Calendar Super Widget by Time.ly: 1.0.7
All-in-One Event Calendar Venues by Time.ly: 1.0.15
Codepress Admin Columns: 1.4.9
Enable Media Replace: 2.9.6
Gravity Forms: 1.8.8
Gravity Forms + (More) Stripe: 1.8.1
Gravity Forms + Stripe: 1.8.1
Hide Admin Notices: 0.1
InfiniteWP - Client: 1.3.6
Intuitive Custom Post Order: 2.1.0
NS Cloner Pro: 2.1.5.8
Page Links To: 2.9.3
Pingdom Real User Monitoring: 1.0
Pods - Custom Content Types and Fields: 2.4.2
Pods Automatic Importer: 0.1
SB Welcome Email Editor: 3.9
Simple History: 1.3.6
Social Network Tabs: 1.7
User Switching: 0.9
WP-Mail-SMTP: 0.9.5

@Shelob9
Copy link
Contributor

Shelob9 commented Sep 13, 2014

@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.

@dweinlick
Copy link

I have tested it in Chrome, FIrefox, Internet Explorer, and Opera. The same behavior exists browsers and computers.

@sc0ttkclark
Copy link
Member

Looks like a CodeMirror conflict, another plugin/theme is loading another CodeMirror version on EVERY admin page, not just their own.

@ghost
Copy link

ghost commented Nov 3, 2014

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.

@dweinlick
Copy link

We're also seeing this problem, and we use Rackspace for hosting. Could that possibly be the source of the issue?

@asap247
Copy link
Author

asap247 commented Nov 3, 2014

No I don't think so, because I have a different hosting provider and the problem still persists.

On Nov 3, 2014, at 10:11 AM, dweinlick notifications@github.com wrote:

We're also seeing this problem, and we use Rackspace for hosting. Could that possibly be the source of the issue?


Reply to this email directly or view it on GitHub.

@dweinlick
Copy link

Could we identify something those hosting providers have in common that might be the root of the problem?

@ghost
Copy link

ghost commented Nov 3, 2014

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.

@ghost
Copy link

ghost commented Nov 3, 2014

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...
php_flag xcache.cacher 0

...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.

@Shelob9
Copy link
Contributor

Shelob9 commented Nov 4, 2014

A user in the forums reports they resolved this issue with their hosting provider and were given this message:

Looks like xcache is causing the issue. The issue should be fixed for the account "XXXXXXXXXXXXXX".

If any other account is using Pods then you may disable "xcache" by going to "Select PHP Version" in your cPanel and then change the php version to PHP 5.4 (not native) and then uncheck "xcache". Once you save the settings it should work fine.```

@sc0ttkclark
Copy link
Member

That doesn't sound like a good solution, nor recommending 5.4 or below.

@Shelob9
Copy link
Contributor

Shelob9 commented Nov 5, 2014

@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

@sc0ttkclark sc0ttkclark removed Keyword: Puntable Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up Status: Need Research Status: Need User Feedback Waiting on feedback from user who reported issue labels Dec 29, 2015
@sc0ttkclark sc0ttkclark modified the milestones: Pods 3.1, Pods 3.0 Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants