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
Member Profile Not Loading in Reboot Child Theme
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 7, 2015 - 9:05 pm

I searched and couldn't find anybody reporting this, and can't replicate it here so it must be something to do with my child theme structure, but here goes...

I've got a very slightly modified version of the the Reboot Chile Theme framework (And Reboot is installed). The Child is the active theme for desktop mobile, and tablet.

On the Desktop I can view my Forums Profile, access all tabs and edit options. I have not checked my iPad yet.

On my iPhone, it's like the whole profile does not finish loading. See screenshot. I tap the Options button, and any others, and nothing happens. I temporarily activated Reboot, and all the options are accessible. Reactivate the Child, and the Profile screen chokes as shown, no footer loads, like when viewing in Reboot on the phone.

I thought we only needed to add/edit modified files to the child theme? I don't need to edit the Profile template, but I do need it to work.

I tried copying an unmodified spProfileEdit.php from the /Reboot/templates folder to my /rebootkid/templates but that made no difference.

It seems that file (if it's the right one) calls a function, rather than a mobile or desktop template, so I'm not sure how to edit it, if that's necessary.

I searched all Reboot files for reference to the "sp_ProfileEditMobile();" on line 26 of spProfileEdit.php and that file is the only place it appears.

While trying to figure this out, I recalled that I did have the Profile Display Control plugin activated. But after deactivating that and making sure all profile tabs and options are checked to display, it still looks like this...

noprofile-1.pngImage Enlarger

Only the Profile tab is clickable, and that just reloads the same broken screen. All other links do nothing. The Profile looks complete and functions in Reboot.

My only Child Theme edits are style related, and my only modified templates are spGroupView and spFoot, with an spFunctions file that only turns off the tooltips (to address a WP theme conflict)

I have made no changes to any Profile files in my Child theme... confused

What do I need to do to troubleshoot and fix the issue of my Profile tab not loading with my child theme activated? Anyone? Thank You!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 10:38 pm

correct... you dont need to copy over any unmodified template files...  thats the power of child themes...

is that the popup profile or the page profile?

so with your browser console, are any errors reported as the profile loads?  and please check the php error log too...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 9, 2015 - 2:08 pm

Mr Papa said
is that the popup profile or the page profile?

The issue occurs on the Profile Page, both the view profile page (by clicking avatar, then view full profile link) AND the edit profile page (from clicking actions -> Profile). The Profile pop-up loads fine, with its info displaying properly.

Only when viewing the Profile detail page, or when attempting to edit your profile, does the page appear to "break" as pictured in my screenshot above.

 

so with your browser console, are any errors reported as the profile loads? 

No browser console is available on the iPhone (Safari) so I can't identify any errors upon that page load.

To clarify, all Profile pages load fine in Desktop view, and on my iPad which loads the desktop (child) theme 

and please check the php error log too...

Server error logs show nothing related. nothing in SP Toolbox errors either.

Can anyone replicate this by activating a Child Theme and attempting to view the full Profile Page or Edit Profile on a phone? If not, please advise which files I need to copy, move or edit to get this working.

I notice other "root" template files call either a /mobile or /desktop template file. The Profile templates seem to call a function, or do not reference "mobile" at all...

/Reboot/templates/spProfileShow.php includes no reference to "mobile" at all.

/Reboot/templates/spProfileEdit.php does not call a /mobile template. Instead it seems to call these functions...

spProfileEdit.php:24-34

 

                if ($spDevice == 'mobile') {

                    sp_ProfileEditMobile();

                }

                if($spDevice != 'mobile') {

                    sp_ProfileEdit();

                }

This is what's throwing me off, since a multi-file search of all Reboot files for "sp_ProfileEdit" or "sp_ProfileEditMobile" only returns their appearance in this same file. confused

@Ike

^FYI: @Pop-up did not load any names when trying to tag Ike, so not sure if that worked.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 9, 2015 - 2:11 pm

Guess the tagging did work, even though the name did not show in pop-up.

FYI: I checked the Unified files and the structure appears the same as I described above, though I have not tested it.

I just don't understand how the Child theme will know how to show the Profile pages this way...

Thanks!!!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2015 - 3:16 pm

Hey Jim,

You are right and it should be like that, it doesn't call a mobile or desktop template. The idea was the main templates are split to make editing easier. spPorfileEdit.php only has one function so it seemed fitting to leave it as one template as splitting it kind of seemed a bit petty! But - even if it was split it would still contain the same stuff relevant to it's type.

You can run a responsive design view with a mobile user agent to test mobile display on a desktop. I'm happy to do that (or one of us will be) if you have an account we can use to get in to the profile edit screen?

If possible PM to me, Andy and Steve and one of us can take a look.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 9, 2015 - 5:21 pm

Ike said
You can run a responsive design view with a mobile user agent to test mobile display...If possible PM to me, Andy and Steve and one of us can take a look.

Thanks @Ike Looks like I'll need to add some Firefox plugins to do so, thanks for the tip.

In the mean time, I'll PM forum admin credentials for our test install where I can replicate the same mobile profile view/edit issue...

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2015 - 5:45 pm

As far as FF goes, I think I'm using user agent swticher and web developer, but Chrome does all this as standard, no need for plugins.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 11, 2015 - 9:30 am

Sorry to be a bit late to the party Jim but I have just been taking a look at this.

The first problem I note is that the tinyMCE Editor is not being loaded properly. Whether this is the cause or whether this is an effect I am unsure because trying to debug mobile problems is an absolute nightmare.

There is - as Ike pointed out somewhere - a single console message regarding an SP script function not being defined which, as far as i can see is probably accurate. But that is because something has already triggered an error and some scripts have stopped loading - amongst them all the editor scripts.

Look around in mobile display and you will find other things not working as they should for the same reason.

So how to proceed... Can you start by telling me:

  1. What changes have you made to the spFoot (mobile version)? Could you paste the code here?
  2. Do you have any WP plugins that specifically add something or do something when a mobile device is detected?
andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 11, 2015 - 12:22 pm

Yellow Swordfish said

The first problem I note is that the tinyMCE Editor is not being loaded properly. Whether this is the cause or whether this is an effect I am unsure because trying to debug mobile problems is an absolute nightmare.

I'll need to poke around and see if this is still the case, as I think I have resolved this.*
(Did you notice this in Reboot or with my child theme? Only Mobile or desktop too?)

What changes have you made to the spFoot (mobile version)? Could you paste the code here?

*Got it! Thanks for rattling the old cage. A closer look at my child spFoot file revealed I had a div and short googletag.display code for a small ad before the closing ?>. After removing that, the Profile options are all loading.

So far so good...

 

FYI:  Perhaps a bit off topic, but I just discovered that the SimplePress SP Theme Editor only lists files in the theme's root folder, so files within /mobile or /desktop cannot be edited from there. At least no with my child theme...Unlike the WP theme editor, there is no option to select which theme to edit, so I presume the editor only lists files for the currently active theme. But it doesn't list the /mobile or /desktop files. (No biggie, since I rarely edit files this way, just FYI.)

sphemeeditor.pngImage Enlarger

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 11, 2015 - 12:45 pm

thanks for the update...

as to the theme editor, its probably like the wp editor - only goes one directory deep...  but we can look into...

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625