Support Forum
glad to help. please let us know how you get along or if any questions along the way...
Visit Cruise Talk Central and Mr Papa's World
When the forum is outside Wishlist control, guest visitors see...
"The requested group does not exist or you do not have permission to view it"
Is it possible to redirect guest users only to a different page on the website, such as a registration page, and have the forum work normally for those with access?
I have just been running some tests with WishList turned on trying to link with both a protected post and an unprotected post. In both cases the lining worked as expected.
I also searched WishList code for the hooks that might effect post publishing in a plugin and could not, in fact, find any reference to them - simply reinforcing my puzzlement.
My first question would be - are you using any WishList plugins that might actually be responsible? And secondly - have you talked to WishList about this problem?
YELLOW
SWORDFISH
|
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...
Visit Cruise Talk Central and Mr Papa's World
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.
YELLOW
SWORDFISH
|
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
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.
YELLOW
SWORDFISH
|
1 Guest(s)