Registration single page not loading all CSS & JS

Permalink
I'm running a site on both a local MAMP testing install and on a live shared hosting account.

I have a registration page and login page wrapped in a theme.

In the header of my theme, I have several embedded blocks, including a search block, a fontScaler block, a login block and a content block. All are called from the Global Scrapbook and have custom templates attached.

On my local MAMP setup, everything works as advertised. On the shared hosting server, everything works BUT the registration page. It appears the CSS and JS associated with the search block and fontScaler block is not loading. Breaking the layout in my header.

But ONLY on the shared hosting server, not on the local server. And ONLY in the registration page, not on any other page in the site (including other single pages, like the login).

I have double-checked paths, permissions, made sure files are where they should be. Re-linked the custom template through the scrapbook. It just doesn't make sense that it doesn't work on a single page that works fine on another server.

I'm baffled.

invision
 
jordanlev replied on at Permalink Reply
jordanlev
That is baffling (especially that it's working on all single_pages except the registration one). Are you overriding the system register.php single_page (i.e. did you copy YOURSITE/concrete/single_pages/register.php to YOURSITE/single_pages/register.php)? If so, can you post the modified register.php file?

If not, the only thing I can think of is clearing the site cache and clearing your browser cache.
invision replied on at Permalink Reply 3 Attachments
invision
Yes, this is set up as an override. Attached is the register.php single page, register.php controller, and the header.php from my theme.

Nothing really out of the ordinary. That strangest thing is that every page works on the local setup.

I thought I mentioned in my OP I cleared the c5 cache and the browser cache. Also tested with other browsers and get the same result.

If nothing else, I'll try wiping out the live site and migrate the local site up again. Perhaps something is getting corrupted on upload.

Thanks for taking a look, Jordan.

Sherm
invision replied on at Permalink Reply
invision
May have just discovered an issue. Re-checked my error logs and have this little puppy sitting in there:
"PHP Warning: Wrong parameter count for strstr() in /home/wtwpcom/public_html/sandbox/controllers/register.php on line 43"

Code in question is:
$emailname = strstr($_POST['uEmail'], '@', true);


Just checked the PHP version on the shared hosting site, and it's 5.2.15 (I thought it was running a newer version). 5.3 or later supports the third parameter in the strstr().

I'll try setting up something else for the $emailname and see what happens.