This is the error log that we keep getting
file: /simple-press/forum/content/sp-common-view-functions.php
line: 2090
function: sp_ForumStats
Notice | Trying to get property of non-object
This is the error log that we keep getting
file: /simple-press/forum/content/sp-common-view-functions.php
line: 2090
function: sp_ForumStats
Notice | Trying to get property of non-object
I think we can safely ignore the warning for now and return to that later when we have the actual problem resolved.
It sounds like a fairly typical case of conflicting javascripts at the moment and is probably explained by this codex article: http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/
if you can check for this we can usually help sort it out fairly easily if this is the problem. If not then a link to your forum would be useful to have.
Hello. I am having the same issue. Used SP on a different site and was able to get it working properly. Now, on my new site, everything works fine. Except, when I go to add my first topic, nothing happens.
The only difference is the membership plugin I’m using.
Unfortunately, I’m not skilled enough to understand how to spot problems in codes and scripts. I will send a pm with access to my site if this helps.
Josh: The problem is probably this:
<script type='text/javascript' src='http://globatext.net/wp-content/plugins/membersonic/js/jquery-ui-1.7.3.custom.min.js?ver=3.4.2'></script>
where the jQuery Ui core library is being loaded from the WP theme instead of from the WP script library. This is bad practice. It also means that a second, correct copy of the library is also being loaded.
The worry comes in that word ‘custom’ that has been added to the file name which suggests the theme author may have added other code into the file but it should be easy to find that out if we fix this up and run things.
Somewhere you will find a line of code that either looks a little like the above or uses a function called wp_enqueue_script() which will also load this script. Normally this would be in the themes functions.php file or – on older, badly written themes, in the header.php but I can not see it in either of these files on your site.
If you can’t locate it then you may have to ask the theme author
Thanks again for your reply. The only question of have about that is the fact that I successfully installed SP on another website less than a week ago using the exact same theme. And everything there works as intended.
Why would it work on that install and not this one? Literally the only difference is the membership plugin.
I appreciate your quick response and happy to try rooting around the code. Just want to make sure we are looking in the right place ya know?
afraid I did not get the PM so cannot help as easily…
but looking at the file Andy referenced, its a personal copy of jquery ui… it is different than the version wp loads… the wp version is also more new or more recent…
cannot really comment as to other site, but the first place we usually look (and have success) is when a plugin or theme loads their own version of js that wp loads… recipe for a conflict…
I found where the problem was. When we initially uploaded the forum it worked well on the basic and I upgraded to gold but then we had a problem with the plugins when I used your uploader.
It caused a major error way above my IT skills so my web guy uninstalled the plugin and still had issues so we uninstalled the forum and reinstalled the the basic upgraded again to gold but downloaded the plugins using ftp all went fine until the topic issue started and we were stumped.
I eventually found in integration/page and permalink/wp forum pages. The forum had not been linked to the WP page it was showing security as the page with a warning above clicked on the drop down list picked Forum from WP pages problem sorted topic posting works perfectly
Gentlemen,
After doing a rudimentary test, I’ve determined that the cause of this conflict is in the Membership plugin I’m using (Membersonic). I’ve contacted their support to try and resolve the issue. In the mean time, can you point me ‘step-by-step’ to the place where I can find the coding issue and how to possibly fix it on my own? Or if it’s even possible at all?
Thanks.
what do you think the coding issue is???? or do you mean in the membership plugin?
you will have to search the files for that file being loaded shown in post #4…. then we can help correct it…
Having issues pasting the code. This looks bad, but it’s the best I can do.
(Code block removed by forum admin)
OK – I removed the code after looking at it. It is nasty and totally goes against the WP coding rules. The good new is that it should be easy to fix up.
Locate the file membersonic.php in the wp plugins folder under membersonic.
Find these lines of code:
function wp_sm_get_header() {
// load script
wp_register_script('wp_sm_front_end_script_custom', plugins_url('/js/jquery-ui-1.7.3.custom.min.js', __FILE__), SM_VERSION);
wp_enqueue_script('jquery');
//wp_deregister_script('jquery-ui-core', 'jquery-ui-dialog');
wp_enqueue_script('wp_sm_front_end_script_custom');
and change it to be like this:
function wp_sm_get_header() {
// load script
// wp_register_script('wp_sm_front_end_script_custom', plugins_url('/js/jquery-ui-1.7.3.custom.min.js', __FILE__), SM_VERSION);
wp_enqueue_script('jquery');
//wp_deregister_script('jquery-ui-core', 'jquery-ui-dialog');
// wp_enqueue_script('wp_sm_front_end_script_custom');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-dialog');
Check to see if the forum page is working.
This wont be the end of it as that file you posted has some other libraries embedded in it but it is the place to start. So this might still error (the php code for this plugin is a bit of a tangle to be honest) but we can fix that when we see the result of the above. However – it would be useful if I could get to the forum page ion your site. at the moment I am getting ‘Sorry. You don’t have access to this page. Please register and request permission to view it.’ even when logged in with the credentials you supplied.
That suggestion seems to have fixed the problem. Thanks for finding it so quickly. I owe you a steak sandwich!
I also adjusted the membership access so you can see the forum. Sorry, this is a new software, and I’m still figuring it out.
Well hat sounds promising.
Remember there may be some other, non-forum related things that don’t work as they should. If you find any come on back and we can track them down and load the support script properly.
I would let the membership guys know we have made this change and why as well. And why we recommend using the proper WP api for these scripts.