404 settings error

pauline

Member
Hi All,

I have just installed a toplist on a new domain everything seemed to go well until I tried to change my settings.

I got this error:

You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Error log has this in it:

[02-Apr-2014 23:57:55 America/Montreal] PHP Notice: Undefined index: fail in /home/hyfmmbfn/public_html/admin/index.php on line 35

I haven't uploaded any new plugins yet.

I tried to work it out on my own but to no avail.

Thanks In Advance,

Pauline
 

Mark

Administrator
Staff member
Ask your host to check the mod security log, most likely they are blocking something.
 

Basti

Administrator
Staff member
Pauline its the same issue most likely like last time. Mod_security blocking predefined values in button_config.php "YOURSITE.com"
They did not like it, sounds stupid to apply such a rule to mod_security.

So try opening button_config.php and replace all yoursite.com values with your actual domain
 

pauline

Member
Thanks Basti and Mark,

It's getting late here so I'll try that tomorrow and let you know how it goes.

Pauline
 

pauline

Member
Hi Basti,

I did as you said and it worked but brought it a whole lot of code on all admin pages and on the site . I've fixed this before but I can't remember what I did. I clicked on inspect element and found this in console. I also checked the error log and there are no new errors in error log.

Failed to load resource: the server responded with a status of 404 (Not Found) http://ltemailertoplist.com/images/1.png
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Here are the changes in I made in button_config.php


<?php

$CONF['count_pv'] = 0; //Count pageviews

$CONF['text_link_button_alt'] = 'your name'; // Text Link Anchor, Alt for Buttons
$CONF['text_link'] = 1; //Enable Text Link
$CONF['static_button'] = 0; // Show Only Static Button
$CONF['static_button_url'] = '';

$CONF['rank_button'] = 1; //Show buttons with rank 1.gif, 2.gif etc
$CONF['default_rank_button'] = 'http://ltemailertoplist.com/images/button.png';
$CONF['button_dir'] = 'http://ltemailertoplist.com/images';
$CONF['button_ext'] = 'png';
$CONF['button_num'] = 2;

$CONF['stats_button'] = 1; //Show Dynamic Stats Button

$CONF['hidden_button_url'] = 'http://ltemailertoplist.com/images/clear.png';

?>

Pauline
 

pauline

Member
I'm getting old lol I forgot to post the code that is showing at the bottom of the pages.

SELECT * FROM VL_settings
SELECT category, category_slug, skin, cat_description, cat_keywords FROM VL_categories ORDER BY category
SELECT last_new_day, last_new_week, last_new_month FROM VL_etc
DELETE FROM VL_sessions WHERE time < 1396569465
SELECT type, data FROM VL_sessions WHERE sid = 'gK5rpp1dy8K6L5HCK9d0WQiN5pb8o8M6'
UPDATE VL_sessions SET time = 1396573065 WHERE sid = 'gK5rpp1dy8K6L5HCK9d0WQiN5pb8o8M6'
SELECT COUNT(*) FROM VL_sites WHERE active = 1
SELECT * FROM VL_menu ORDER BY sort ASC
SELECT * FROM VL_sites WHERE premium_flag = 1 ORDER BY date_start_premium DESC LIMIT 0
SELECT username,url,title,category FROM VL_sites WHERE active = 1 ORDER BY join_date DESC LIMIT 5
Array
(
[a] => admin
=> manage_skins
=> parabola
[t] => screen.css
[atsphp_sid_admin] => gK5rpp1dy8K6L5HCK9d0WQiN5pb8o8M6
 

Mark

Administrator
Staff member
In index.php you have enabled debug mode. You will want to set that back to 0;
 
Top