solved All Forum Links Are Not Working :: 404 errors

Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
NONE of the links to Forums are working, all generate 404 errors. ALL other top nav URLs function properly.

I reverted to the prior working version of the skin. Did not help.

I posted a new forum post yesterday morning and it was working fine when I left. I made no template changes yesterday after doing the post, however I did update galleries by moving images around and adding titles.

This is the URL set in the skin global config:

http://www.thechocolatelife.com/clay/forums

This is the URL copied from the top nav menu item:

http://www.thechocolatelife.com/clay/forums

This is the URL from a link in the Latest Forum Posts block on the home page:

http://www.thechocolatelife.com/clay/forums/tasting-notes/14682/trying-to-make-generic-pairing-recommendations#last

I ran the integrity check. Did not fix the problem.

Running 1.5.1 of jrForum. Reverted to 1.5.0 then reset caches. This did not solve the problem. (Reverted back.)

I am at a loss to understand what is going on.



updated by @claygordon: 03/15/15 05:01:30AM
brian
@brian
9 years ago
10,148 posts
You will get a 404 not found if the module has not been allowed in the quota. make sure the module is allowed in the quotas you want it to be allowed in.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
It's my quota as admin. Anything routing through thechocolatelife.com/clay is affected.

I can't get to my profile, but I can get to my account/profile settings pages.

I have the same problem when not logged in in another browser.

In Profile Forums config "allow on profile" is enabled for all quotas.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
It's my quota as admin. Anything routing through thechocolatelife.com/clay is affected.

I can't get to my profile, but I can get to my account/profile settings pages.

I have the same problem when not logged in in another browser.

In Profile Forums config "allow on profile" is enabled for all quotas.

Do you see any PHP errors? Sounds like something has been corrupted.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
No PHP errors on-screen. I am assuming nothing in the JR logs.

Not sure where to find the PHP error logs using cPanel - though error logs function shows empty.
updated by @claygordon: 02/09/15 08:42:52AM
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
No PHP errors on-screen. I am assuming nothing in the JR logs.

You need to go to Activity Logs -> PHP Error Log. The only time PHP errors are sent to the screen is if Developer Mode is enabled in Developer Tools.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
[07-Feb-2015 18:08:20 America/New_York] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/choclife/public_html/thechocolatelife/data/cache/jrCore/dc6931e8034b218e9a23c6771c4478ac.tpl" on line 12 "{/if}" unexpected closing tag <-- [x 1]

thrown in /home/choclife/public_html/thechocolatelife/modules/jrCore-release-5.2.22/contrib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 12 [x 1]
brian
@brian
9 years ago
10,148 posts
So you have a syntax error in a template and it is a "Fatal" error - that is your problem.

It could be a corrupt file - log in via FTP and delete that file and see if it works - if it does NOT (and the file comes back) download that file via FTP and open it - that will give you an idea of what template it is.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Delete -

data/cache/jrCore/dc6931e8034b218e9a23c6771c4478ac.tpl

Resetting template caches doesn't fix this?
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Delete -

data/cache/jrCore/dc6931e8034b218e9a23c6771c4478ac.tpl

Resetting template caches doesn't fix this?

Yes - as I outlined above.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Deleted. Reloaded site. Error is back. Cached template re-created. It looks like it's index.tpl
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Sorry --- it's header_menu_desktop. Which makes more sense.
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I don't see any differences between the current header_menu_desktop and the last known prior working version using the compare tool. There were no visible changes made on Feb 8 that might have caused this to happen. Feb 7, yes - but Forums was not throwing errors on the 7th.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
I don't see any differences between the current header_menu_desktop and the last known prior working version using the compare tool. There were no visible changes made on Feb 8 that might have caused this to happen. Feb 7, yes - but Forums was not throwing errors on the 7th.

The error tells you where the issue is - on line 12 of the template you have an {/if} closing tag that is not expected - make sure all your if's are balanced.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I don't see it:

<div id="menu_content">
    <nav id="menu-wrap">
        <ul id="menu">

            {* Add in Cart link if jrFoxyCart module is installed *}
            {if jrCore_module_is_active('jrFoxyCart') && strlen($_conf.jrFoxyCart_api_key) > 0}
                <li>
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="2" default="cart" assign="cart"}
                    <a href="{$_conf.jrFoxyCart_store_domain}/cart?cart=view">{jrCore_image image="cart24.png" width="24" height="24" alt=$cart}</a>
                    <span id="fc_minicart"><span id="fc_quantity"></span></span>
                </li>
            {/if}

And it was working in the morning on Sunday the 8th - so not sure why the errors on the 7th are not seen on the 8th.
updated by @claygordon: 02/09/15 10:04:54AM
brian
@brian
9 years ago
10,148 posts
When you download this file:

data/cache/jrCore/dc6931e8034b218e9a23c6771c4478ac.tpl

what is at line 14?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
{if jrCore_module_is_active('jrSearch')}

{if jrCore_module_is_active('jrSearch')}
   {jrCore_lang skin=$_conf.jrCore_active_skin id="3" default="search" assign="st"}
   {$st}
{/if}

updated by @claygordon: 02/09/15 10:06:48AM
brian
@brian
9 years ago
10,148 posts
Those are fine - that's not where the issue is. I will have to log in and fix this for you as it may just end up being a lot of back and forth here to help you debug it.

Send me your FTP login and admin login info and I will fix it for you.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
sent via private note
brian
@brian
9 years ago
10,148 posts
This is fixed now - root cause was that a custom module called "jrClay" with module url "clay" had been installed. Module URLs have a higher priority than profile URLs, and that is why you were getting a 404 not found. I changed the module URL for the module to "claystuff" and it is working now.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Thanks, Brian!

As I was waiting I was looking through older email and saw the notice about the custom module (if it works I hope it will be released to everyone as it is a useful admin tool). By the time I clicked on it the first time you'd already changed the module URL so it worked right off for me.

If I'd linked through to the module earlier I might have noticed the conflict but, by that time, I was reluctant to touch anything I was unfamiliar with.

There is the separate issue of the fatal PHP errors. Should I clear the log and take a regular look to see if they still reoccur?
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Thanks, Brian!

As I was waiting I was looking through older email and saw the notice about the custom module (if it works I hope it will be released to everyone as it is a useful admin tool). By the time I clicked on it the first time you'd already changed the module URL so it worked right off for me.

If I'd linked through to the module earlier I might have noticed the conflict but, by that time, I was reluctant to touch anything I was unfamiliar with.

There is the separate issue of the fatal PHP errors. Should I clear the log and take a regular look to see if they still reoccur?

Those were all old and unrelated errors - I deleted them for you so you should be set. It's always a good practice if you suspect an error to delete any existing log entries, reload, and see if they come back.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Brian -

I will add the log entries into my troubleshooting checklist. I do my best to try to narrow things down, but I don't know what I don't know until I encounter it for the first time.

Tags