Support Forum

Wishlist Member and Blog Post Linking

22 Answers

New Answer

NS Neil Shearing
Neil Shearing
Member

I am running the basic, up-to-date Wishlist Member. No additional plugins.

I haven’t spoken to them about it because I don’t exactly know what’s causing the issue and I imagine a vague question would not get me very far…

MP Mr Papa
Mr Papa
Member

as to your redirect… assuming you have at least one group created, in your spGroupView.php template file you could replace:

                sp_NoGroupMessage(‘tagClass=spMessage’, __sp(‘The requested group does not exist or you do not have permission to view it’), __sp(‘No groups have been created yet’));

with

                sp_redirect(‘http://yoursite.com/yourpage’);

of course, replace the url with the one you want to redirect to…  not perfect, but you could redirect to a sign up page…

what we actually prefer to do is use the sneak peek feature…  let guests view the forum list (group view) and/or the topic list (forum view) but not let them see an content… if they try to go to the topic view (list of posts), they get redirected…  try it here when logged out…  it does require they can at least see the main page with the sneak peek…

YS Yellow Swordfish
Yellow Swordfish
Member

I have seen your PM although I am unsure what I could actually do.

There is one other thing to check however. Go to the forum admin > Toolbox > Error Log and see if there are any errors reported. Please don’t paste the whole lot here as there are bound to be some notices! But take a look through them and see if you can see any errors or warning raised against the linking code – that will all be from the folder /blog-linking/.

If nothing specific you could also take a look at your php error log on your server in case an error was raised outside of Simple:Press code which may not be included n the SP log.

Finally – if you find no entries – I would still ask the WishList people for their take on this. Basically the question is that we are using the WordPress action hooks – the code I pasted above and suggested you change. And when WishList is active on your site these hooks are failing to fire. Can they think of a possible reason.

However – the more I think about this the more suspect I am becoming. As I have said we use WishList here and we have many users who also do so. While it is possible none of those users are also utilising blog linking it is a very popular plugin so there is a high chance some are. Yet this is a unique report. I am simply wondering of there is something else at play causing a conflict.

NS Neil Shearing
Neil Shearing
Member

The errors I think may be relevant are…

SP Error log:

May 2, 2014 6:55 pm | spaErrError | 4 | database

——————————————————————————–

file: /problem-with-post-edit-buttonome/internez/public_html/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-plugin.php

line: 254

function: sp_linking_do_install

error: Duplicate key name ‘post_idx’

ALTER TABLE wp_sflinks ADD KEY post_idx (post_id), ADD KEY forum_idx (forum_id), ADD KEY topic_idx (topic_id);

 

Server Error log: (different date)

[27-Mar-2014 11:51:51 UTC] WordPress database error Table ‘internez_blog.wp_sflog’ doesn’t exist for query SELECT build, version FROM wp_sflog ORDER BY id DESC LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/simple-press/sp-control.php’), include_once(‘/plugins/simple-press/sp-startup/sp-load-core.php’), sp_get_system_status

===

Two other reported issues from SP which I’m not sure are relevant are:

May 2, 2014 8:54 pm | spaErrNotice | 2 | php

——————————————————————————–

file: /simple-press/forum/content/forms/sp-form-post.php

line: 16

function: sp_render_add_post_form

Notice | Undefined index: editor

 

May 2, 2014 8:54 pm | spaErrNotice | 2 | php

——————————————————————————–

file: /simple-press/forum/content/forms/sp-form-components.php

line: 22

function: include_once

Notice | Undefined index: editor

YS Yellow Swordfish
Yellow Swordfish
Member

No – sorry – nothing of any significance there at all.

The Server error log on is sort of interesting – but irrelevant to linking. Might the 27th March have been the day you first installed SP?

Afraid I really do think the next step is to ask WishList what they think.

NS Neil Shearing
Neil Shearing
Member

Yes, that could’ve been the date of the initial installation of SP.

OK, I’ll ask the Wishlist guys after I test a complete re-install of WP/Wishlist/SP. I think something went awry for this specific install.

NS Neil Shearing
Neil Shearing
Member

Well, I deleted everything and did a fresh install of WP to a new database, then added SP with the Blog Post Linking plugin. Everything worked fine and a test post was linked to the forum.

I uploaded Wishlist, and activated the plugin. The first post I made after activating Wishlist didn’t auto-link to the forum. De-activating Wishlist and updating the post resulted in the link to the forum being generated.

There’s nothing added to Wishlist, no other plugins for SP uploaded and the only other WordPress plugin is the default, inactive Akismet.

Do these errors mean anything?

May 5, 2014 12:32 pm | spaErrNotice | 3 | php
——————————————————————————–
file: ternez/public_html/wp-content/sp-resources/forum-plugins/blog-linking/library/sp-linking-blog.php
line: 35
function: sp_save_blog_link
Notice | Undefined index: sfedit

 

May 5, 2014 12:31 pm | spaErrNotice | 1 | php
——————————————————————————–
file: ternez/public_html/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-upgrade.php
line: 15
function: sp_linking_do_upgrade_check
Notice | Undefined index: dbversion

YS Yellow Swordfish
Yellow Swordfish
Member

No… again – they are just Notices. Nuisance value only.