latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Content has disappeared

Home Forums Community Forum Content has disappeared

This topic contains 7 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 5 months ago.

Topic Author Topic
Posted: Thursday Jul 26th, 2012 at 3:59 am #20296

Hello
Just purchased Pro version and I am trying to set up everything. But now I can not see or edit any content in my pages or posts. They are still visible on the web but not in my dashboard. I can open them to edit them – everything is visible except for the actual content. I can’t switch to HTML view either.

I’m reasonably experienced as an administrator but not in s2members or coding. I am logged in as administrator – my wp is up to date as are all my other plugins. Please help!
Soosie

  • This topic was modified 4 years, 5 months ago by  Soosie Jobson.

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Thursday Jul 26th, 2012 at 7:11 am #20306

Hi Soosie.

That’s very unusual, I don’t remember a user having reported that problem before. s2Member doesn’t touch the editor except for adding the box that lets you set the Level/Custom Capability protection for the page/post.

Since the issue is with the editor, it may be a JavaScript problem caused by a bad implementation by one of the plugins or the theme. Conflicts would happen if one of the plugins or the theme isn’t doing something the right way. The plugin may not show a problem until you install another one that it conflicts with, even if the latter one is doing things properly.

A test you can do to find if there’s a conflict is to deactivate other plugins one by one, and check after each if the problem continues. To check the theme you change to the default TwentyEleven theme for a moment and check if the problem is still there.

I hope that helps. :)

Posted: Thursday Jul 26th, 2012 at 7:54 am #20307

Hi Cristian
I am using 2011 theme and I will deactivate each plugin (OMG) to find the issue. I’ll get back to you as it will take a while.
Soosie

Posted: Thursday Jul 26th, 2012 at 7:58 am #20308

Okay. I lhope you find the source of the problem. :)

Don’t forget to do a backup of your site first, it’s always good practice so you have a safe way to go back to how you had it in case you need it.

Another way of testing is to install a new WordPress in a sub directory, just for the test, add s2Member and then keep adding the other plugins one by one, checking after each if you get the problem there too. I mention this option in case you feel more comfortable testing this way than in the one you already have, which I don’t know if it’s already live or not.

Posted: Thursday Jul 26th, 2012 at 11:23 pm #20362

Hi Cristian
Luckily the first plugin I disabled brought everything back BUT the plugin is Site Notes which I have been using to create a training manual for my “apprentices”. I run an community org and have been encouraging our members to paticipate in the running of our site. Site Notes was brilliant it created heirarchical pages that appearded in the Dashboard as a manual. Now that I can’t use it because of s2members any suggestions of a work around or other plugins that won’t conflict with s2member?

All help greatfully received!

Cheers Soosie

Posted: Friday Jul 27th, 2012 at 3:31 am #20370

Hi Cristian
Can I ask another question – I can’t seem to find any docs about it – how do I tell the system when the memberships are due? Especially the existing ones?
:)
Soosie

Posted: Friday Jul 27th, 2012 at 7:38 am #20383

I’m glad you found the conflicting plugin so quick! I’m sorry it’s one so important to your site, though. But it may be possible to fix it without much trouble.

This is part of a conversation I had with Jason some months ago regarding JavaScript conflicts.

Cristián: I still don’t understand how the JS conflicts work… If the library is the same in both plugins, why is there a conflict? Same var names?

Jason Caldwell: Well, I call it a conflict. Sometimes it’s a conflict in jQuery because of a bad plugin, which attempts to load jQuery on it’s own, instead of doing it the WP way. Or sometimes, it just a bad plugin that causes a JavaScript error, which may result in all JavaScript failing (the nature of JavaScript). Not really a “conflict” in that case, really an error due to a bad plugin/theme.

Jason Caldwell: I’ve also see some conflicts between frameworks. That’s rare, but there are some plugins that use the ProtoType framework, and combined with another framework like MooTools, there is a possibility for a conflict to arise. Rare though, and it’s usually attributed to the way their loaded (i.e. by a bad plugin/theme).

Cristián: Does WP load JQuery already? If so, why do plugins load it too?

Jason Caldwell: Yea, WP already loads it. But some plugin authors don’t know that, or they just hard code it into their plugin not realizing that. Other times they’ll try to include a dependency on jQuery, but they name it wrong, and WordPress gets confused.

Cristián: Does s2Member load it again or uses WP’s?

Jason Caldwell: Hmm, not really, because in the Dashboard, it’s already loaded by WordPress. s2Member enques scripts that is uses, which rely on jQuery being present. In the call to wp_enqueue_script(), s2Member will list jQuery as a dependency, which forces WP to load it, though it’s already loaded in the Dashboard anyway. That’s the proper way to handle it.

On the front-end of a site, s2Member will load jQuery if it’s not already loaded, but again, using the same technique. A call to wp_enqueue_script() with a dependency on jQuery forces WP to load jQuery. If 10 plugins all do it this way (i.e. the right way), WordPress loads jQuery in the proper order and only one time.

Cristián: Ah, got it. I understand WP has a QC team, don’t they check this?

Jason Caldwell: Not in my experience. They look mostly for security issues and really bad code. They usually don’t catch minute details like this.

Cristián: I see. Well, they do look at how the db is used, iirc.

Cristián: I see, but these details do cause trouble for the users. Maybe it’d be good to write an article about JS conflicts as you explained above and post it in the forums, and then show it to the QC guys for consideration to include in their quality checklist.

Jason Caldwell: Yea, that’s a good idea. On the WP side though, they’re aware of this problem, and that’s why they created the wp_enqueue_script() wp_enqueue_style() functions. Although, I wish this were more prominent in this article: http://codex.wordpress.org/Writing_a_Plugin#Plugin_Development_Suggestions

It is mentioned, but it’s all the way at the bottom:

Try not to echo [hilite code]

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.