Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Error w/ topics not showing
Avatar
Michael Ferris
Member
Free Members
sp_UserOfflineSmall Offline
Aug 25, 2012 - 2:00 pm

interesting

i don't know how to answer your first question. how would i find out if it is really calling that function?

and how would i remove it? would removing it have adverse affects on anything else?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 25, 2012 - 2:48 pm

look at the error message... its says the error originates in your wp theme... tells you which file too... have a look and see if its in there... is it possible its leftover change from long ago using 4.x?

Fatal error: Call to undefined function sf_pop_topic_page() in /problem-with-post-edit-buttonome/delreia/public_html/wp-content/themes/DELREIA_2.bkp/templates/post_title.php on line 61

so check that file in your theme at the referenced line number...

Avatar
Michael Ferris
Member
Free Members
sp_UserOfflineSmall Offline
Aug 25, 2012 - 9:49 pm

Here's the section of code near the line 61

# Forum link (Paren or Child forum)
        if(!empty($sfvars['forumslug']) && $sfvars['forumslug'] != 'all')
        {
            # if showing a topic then check the return page of forum in sfsettings...
            $returnpage = 1;
            if(!empty($sfvars['topicslug'])) $returnpage = sf_pop_topic_page($sfvars['forumid']);
            $forumname = $sfvars['forumname'];
            $out.= $tree.str_repeat($treespace, $xtree).'<a class="sficon sfpath" href="'.$sfvars['forumslug'].'">'.$arr.$forumname.'</a>'."\n";
            $xtree++;
        }

How should the code read?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 25, 2012 - 10:38 pm

Well afraid I cannot really say... that is custom code that you or some predecessor of your site added... obviously we cannot add code like that to your wp theme...

It looks like its trying to do some sort of breadcrumbs display... but not sure why you need that - especially in 5.x as we already have a breadcrumb display built into our sp themes...

personally, I would remove all that code - or at least comment it out... and see if you even notice...

Avatar
Michael Ferris
Member
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 9:21 am

Sorry, its been so long in getting back to this.

In comment it out, you mean to insert <!-- and --> into the code around the part of the code I dont want the site to access? I did that to the above code and the site didnt work at all.

I've attached the whole file.

Can you tell me what the problem is?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 7, 2012 - 2:47 pm

None of this code is good - the whole file. Not even sure what it is really trying to do either.

Bit is also not a function - it will be 'included' somewhere - probably on your page.php template file. See if you can find a line in that file that has the keyword 'include_once' and the name of the file post_title.php and cpmment that line out. The easiest way is with a double slash in front of it. So //include_once(etc... like that.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Ferris
Member
Free Members
sp_UserOfflineSmall Offline
Sep 10, 2012 - 3:02 pm

I don't know what you mean in the 'Bit is also not a function'

But the phrase 'include_once' does not appear in any of my page related files.

And why would it only affect the V5 and not the V4?

This is getting very frustrating for me and my client.

Is there anyway we could try to solve this via GoToMeeting?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 10, 2012 - 8:02 pm

what is gotomeeting??

v5 was almost a complete rewrite of v4... so things that were done in v4 wont work in v5...  v4 using skins - fixed layout with css... v5 uses themes with far greater control over appearance, layout, elements and css...  all data from 4.0 was carried over, but for displaying, its completely different...

the file you attached is NOT one of our files...  it is not something we did or provided even with SP v4... it is something you, your client or some other agent of the client did...  we are simply suggesting to remove the old non functioning v4 customization that was done on that site...

somewhere you in your theme had to invoke it with an include or require statement...  Andy was suggesting you comment out (coding term) the location where you were including that file with // characters (indicates comment follows)...

Sorry, we are trying to help best we can, but it was not us that did that customization... it needs to be removed for 5.0 to work or you will get the errors you are seeing...  if you want to provide us a temp wp admin account with sp admin capabilities, we could log into the site and correct the wp theme using the wp theme editor...  if that works, just pm the details to yellow swordfish and myself...

Avatar
Michael Ferris
Member
Free Members
sp_UserOfflineSmall Offline
Sep 12, 2012 - 10:30 am

GoToMeeting is an online screen sharing software tool. I was offering for us to have a 'meeting' where you would then be able to see my desktop and access my files to edit as you see fit to fix this. Though we would both have to be online at the same time.

Yes, I know the file I uploaded wasnt from SP. It was set-up prior to me.

And yes, I know that we were trying to comment out the old non-functioning code.

If you say a 'require' or 'include' statement is being used, I'm sure it, but I cant find it.

You and Yellow Swordfish have been wonderful is all this. Very helpful. The frustration isnt over you, its over the overall update just being so long and complicated (through no fault of your own).

I will create an admin username and password for you and PM you the info.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 12, 2012 - 11:11 am

OK - I have a vague idea what is going on but can't test anything directly of course.

I THINK (fingers crossed) that the attached post-title.php file should work with SP V5 and continue to do whatever it is doing now for the other pages. NOT 100% because of no testing that I can do. If it fails for any reason it will be an easy fix I believe.

Keep the old file handy somewhere just in case it is needed!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626