Support Forum

Blog Linking

MW Michael Walden
Michael Walden
Member

I installed the Blog Linking plugin today. It generated some messages in the error log:

11/11/2017 4:26 pm | spaErrWarning | 90 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/forms/sp-linking-form.php
line: 22
function: sp_blog_link_form
Warning | Invalid argument supplied for foreach()

11/11/2017 4:26 pm | spaErrNotice | 47 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/forms/sp-linking-form.php
line: 22
function: sp_blog_link_form
Notice | Undefined index: posttypes

11/11/2017 4:26 pm | spaErrNotice | 149 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-plugin.php
line: 71
function: include_once
Notice | Undefined index: sflinkcomments

11/11/2017 4:26 pm | spaErrNotice | 75 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-plugin.php
line: 66
function: include_once
Notice | Undefined index: sfuseautolabel

11/11/2017 4:19 pm | spaErrNotice | 13 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/admin/spa-components-linking-form.php
line: 115
function: spa_get_links_data
Notice | Undefined index: custom_css

 

In addition, when I go in to edit a post, I can not see where the options for linking a post to a forum are. I know I’m old, but…  😉

27 Answers

New Answer

MW Michael Walden
Michael Walden
Member

OK That issue did the disappearing trick. Seems to be working fine however, when I link a post, some of the imaged in the post do not show up in the forum post. Also, on the original blog post I can not find where it created the “join the discussion” information on the blog post. This may be a theme issue but I do not even know where to begin to look fix it.

MP Mr Papa
Mr Papa
Member

not sure what you are asking on last post…

lets start with your options… forum – components – blog linking…  make sure you have enabled for post/page types you want…

when creating (or editing) the post,  you should see a form like below at the bottom of the wp post editor page…

Screenshot_1.png

the link to the forum topic in the blog post, in the options, do you have it enabled to auto link?  if so, is the option set for before or after the post content?  which is where you would look…  it hooks into the standard wp hook ‘the_content’ to display the link…  if you theme is not using that hook (would be very abnormal), then it wouldnt show…

MW Michael Walden
Michael Walden
Member

For testing, I have simply set it to the ‘Post’ type. The form shows up at the bottom of the editor page as you describe. I set the proper forum for the post to appear in and checked “update forum topic with subsequent edits”  Here are my settings for the link to forum blog post

screenshot1.png

Here is a link to the blog post I am testing with: https://thelemicknights.org/2017/10/10/create-a-copper-pentacle/

Also, in the forum post, images that appear in the blog post are not being transferred to the forums post. If you look at the blog post, the only image that gets transferred to the forum is the first photo that appears in the blog post.

MP Mr Papa
Mr Papa
Member

I believe the first image only is by design though there is a ticket to see about changing that behavior…   will have to check or perhaps @yellow-swordfish will be by and know off hand since he did the initial work on the plugin…

as to the link, its actually there (its in page content)…  you just cant see it… seems to be the text is empty…  and that is because in the options you show, you have emptied out the text for displaying the link…  the default would be:   %ICON% Join the forum discussion on this post

But you need some sort of text and possible placeholders in there…

MW Michael Walden
Michael Walden
Member

D’oh. I assumed that was used to modify an existing default. Corrected, BUT now when I attempt to save the component settings I get an error. 

11/11/2017 5:33 pm | spaErrNotice | 1 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/admin/spa-components-linking-save.php
line: 28
function: spa_linking_options_save
Notice | Undefined index: sflinkcomments

11/11/2017 5:34 pm | spaErrNotice | 2 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/admin/spa-components-linking-save.php
line: 27
function: spa_linking_options_save
Notice | Undefined index: sflinkexcerpt

11/11/2017 4:55 pm | spaErrNotice | 2 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-upgrade.php
line: 16
function: sp_linking_do_upgrade_check
Notice | Undefined index: dbversion

11/11/2017 7:06 pm | spaErrNotice | 14 | php

file: _t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/admin/spa-components-linking-save.php
line: 32
function: spa_linking_options_save
Notice | Undefined index: sflinkurls

The box in the editor no longer shows and for some reason I can not save the component settings, when the settings screen comes back after all the settings are made and I click “Update” everything is UNchecked  *argh*

Warning: Invalid argument supplied for foreach() in /home/wp_t2rx8u/thelemicknights.org/wp-content/sp-resources/forum-plugins/blog-linking/forms/sp-linking-form.php on line 22

MW Michael Walden
Michael Walden
Member

FYI, I have tried completely uninstalling the blog linking plugin and starting from scratch. No matter what I do it will not save settings and generates the errors I listed above.

Are there some database tables I should remove after uninstalling the plugin in order to have a complete uninstallation of the blog link plugin?

MP Mr Papa
Mr Papa
Member

are you seeing those harmless notices (not errors) in the error log or on the screen???  if the latter, very bad from security point – you should not be displaying errors/warnings/notices on a production site…  the last is a warning…

that said, typically (hate saying that) none of those would case a failure or stop a page load..

is there anything more in the php error log?  or perhaps on forum – toolbox – error log?

what version of WP, simple press and the blog linking plugin are you using?   I am not able to recreate, but may have differences based on those questions…

if you uninstall the blog linking plugin, all database entries are removed…

can you also upload a screenshot of the complete blog linking components admin page?

MW Michael Walden
Michael Walden
Member

The error shows up on the WP admin page as well as the forum error log. I am using WP 4.8.3, plugin version 1.3.5screen2.png

MW Michael Walden
Michael Walden
Member

The screenshot of the options screen is too large, the system wont allow me to upload it, but.. it shows the same error/warning at the top of the top like the screenshot above. All of the options are blank, nothing checked… it will not accept any changes I make… after hitting update the changes I make disappear

MW Michael Walden
Michael Walden
Member

OH and the forum is functioning just fine other than this particular plugin… no errors or warning appear to the end user

MW Michael Walden
Michael Walden
Member

If you like I can provide you with login information. Just let me know how do do so privately 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

Let me pick up on a few things here.

I think the most important question regards the install. You have said above that you tried uninstalling. Can you confirm that you do mean using the plugins ‘Uninstall’ option and NOT the ‘Deactivate’ option? If you just deactivated it then you need to Uninstall. It looks to me like for reasons I can not start to fathom, when you first activated the plugin it failed to fully create the default data.

Next – as far as displaying errors (or in this case Notices and one Warning) – as Mr Papa said above – it is really bad form to have these show on the normal display – admin or the public side. They should NEVER be shown as they can sometimes display information useful for potential hackers. Your hosting company should always turn this off on a production website and I strongly recommend that you have sharp words with them and get the settings changed.

On to images. There is no reason I am aware of why multiple images should not be made a part of the forum post – unless the excerpt option is used of course. Images are, after all, simple a tag with a path to a file which if correct in the blog post should still be correct in the equivalent forum post copy. But when we sort the admin issue out i can take a look at a linked post to see if anything looks wrong.

Try a full and proper uninstall of the blog linking plugin first and if that still fails in any way to save the data then we can take a look for you.

MW Michael Walden
Michael Walden
Member

I uninstalled and the deleted the files.

I talked with my hosting provider and the messages no longer appear anywhere. 

I completely uninstalled the plugin as described above. I then deleted the files. I waited a couple hours just in case there is some kind of behind the scenes caching going on and then resintalled the plugin.

I went to a blog post, chose edit and the box with the blog linking options did not appear. So, I went to the options for the blog linking plugin.

There were default options set, The only thing I changed was the assigned forum. I clicked update and the entire page returned with NO options selected at all. I reselected the options and again attempted to update the settings. The page again came back with NO options selected.

To put it in the current interwebz vernacular, I haz a confuze. confused

MW Michael Walden
Michael Walden
Member

OK, after another round of testing. I uninstalled the plugin again. When I reinstalled it there were default options set. I did not attempt to change anything.

I went to a blog post and the options for linking did indeed appear. Everything worked alright.

I went back to the options for the plugin. Changed the forum and changed the text for the blog link portion. Clicked update. The page came back with no options selected and the warnings/errors appeared again.