This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Strange 404 Error When Hovering Over Admin Menu
#1
Big Grin 

Hi Steven,
So... I finally finished my site redesign and everything is live. It turned out even better than I could have imagined! Anyway, Commentics survived the move over from the sub-domain I developed the site on just fine. At first I was getting the "The referrer has external origin" message and I couldn't do anything in admin, but I found this solution here at the forum:

Temporarily remove the following from /upload/admin/index.php:


Code:
/* Check Referrer */
if (cmtx_setting('check_referrer')) {
    if (isset($_SERVER['HTTP_REFERER'])) { //if referrer available
        $referrer = cmtx_url_decode($_SERVER['HTTP_REFERER']); //get referrer
        $domain = cmtx_url_decode(cmtx_setting('site_domain')); //get domain
        if (!stristr($referrer, $domain)) { //if referrer does not contain domain
            ?>
            <span class='negative'>The referrer has external origin.</span>
            <p />
            You have arrived at this page from outside of the admin panel.
            <p />
            Please access this page through the menu above.
            <?php
            die();
        }
    }
}

So, I did that and I was then able to update my domain info in settings. Everything worked perfectly then. Well, then I added an SSL certificate and changed all of my internal links from http to https and put a permanent 301 redirect in my htaccess file. Once I accessed Commentics admin again, I realized I had the same problem with the "The referrer has external origin" message again. So, I repeated all of the above steps and once again, I was able to update my domain info in admin settings from http to https. Everything seems to be working fine... I am able to access everything in admin and change settings, etc... Comments are working perfect... The only thing is, for some reason when I hover over anywhere on the admin menu a 404 error message fills my screen as I hover from item to item on the menu... lol

Any help or sugggestions would be greatly appreciated.
Reply
#2

Hi,

Do you mind providing me with your admin login info (via PM) so I can determine what's happening?

Have you completed the interview?
Reply
#3
Big Grin 

Done... >8>)
Reply
#4

Can you open your /admin/index.php file and try changing these ..

Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css"/>

.. to ..

Code:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css"/>

Have you completed the interview?
Reply
#5

Thanks Steven. I tried that, but it was still doing the same thing, so I changed it back... I left you access to admin if you have any other ideas...
Reply
#6

Okay, it seems to be a bug with the menu plugin. Can you upload the file that I have attached to your /admin/ folder, so it would be:

site.com/commentics/admin/blank.htm

Also, you should keep the previous change as it was because that fixed the loading of jQuery.


Attached Files
.htm blank.htm Size: 154 bytes  Downloads: 34

Have you completed the interview?
Reply
#7

Good as new! Thanks, Steven! You're awesome! >8>)
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
20-Sep-2019, 04:20 PM
Last Post by Steven
14-Jul-2018, 05:35 PM
Last Post by Steven
03-Mar-2016, 08:12 PM
Last Post by mariank
05-Jan-2014, 03:43 PM
Last Post by Steven
06-Nov-2013, 07:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)