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

After Update from 2.4 -> 2.5 on Adminpage
#1

Hi,

i have a Problem, after Upgrade from 2.4 of 2.5 have a error or a Message on Adminpage:

"The referrer has external origin.

You have arrived at this page from outside of the admin panel.

Please access this page through the menu above."

the upgrade have on localhost installed, on live system have the same error.
Reply
#2

Hi,

Do you get that message even when accessing the pages using the menu?

If so, open /commentics/admin/index.php and find this section (line 350):

PHP Code:
<?php 
/* 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();
}
}
}

Then comment it out like this:

PHP Code:
<?php 
/* 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();
}
}
}
*/

You should be able to navigate the admin panel now. Then go to Settings -> System and make sure that the 'Site Domain' setting is correct. It should look similar to this: commentics.org

If it was incorrect and you corrected it, you should now be able to uncomment the previous code.

Have you completed the interview?
Reply
#3

thanks.. now works...
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
11-Mar-2014, 09:33 PM
Last Post by Steven
13-Feb-2013, 07:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)