Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » PMBT 2.X Themes » Bug Fix:dvtester Theme(simple fix)
Bug Fix:dvtester Theme [message #2459] Fri, 20 March 2009 03:16 Go to next message
Marlboroman is currently offline Marlboroman  United States
Messages: 3
Registered: March 2009
Leecher
if you are using the dvtester theme and notice this error on the bottom of the page similiar to this error
Warning: include(./blocks/24hours.php) [function.include]: failed to open stream: No such file or directory in \themes\dvtester\main.php on line 658


here is a fix for you
open with wordpad
\themes\dvtester\main.php

look for
include"./blocks/24hours.php";

located close to the bottom around line 658
and replace with
//include"./blocks/24hours.php";

it will take away the error

Re: Bug Fix:dvtester Theme [message #2460 is a reply to message #2459] Fri, 20 March 2009 06:48 Go to previous messageGo to next message
Marlboroman is currently offline Marlboroman  United States
Messages: 3
Registered: March 2009
Leecher
sorry for double post it seems i cant edit my own post Sad but here is yet another way to fix that error from this theme
you can put this in either the index.php file or the
\themes\dvtester\main.php file
i will show you how to do both ,, it dont make a difference witch i would suggest putting it in the
\themes\dvtester\main.php file this way if you get another theme or a mod it will give any errors and will make it easier to spot bugs

first lets do it with the index.php file i wouldnt suggest putting it in this file and you will be adding this code to the index.php at your own risk
first open
index.php

located in the root folder
(example http://yoursite.com/index.php
look for this at the top of the code should be right after the information about the tracker around line 30
look for
include("header.php");

add above
error_reporting(0);

save and upload back to the server
again you are editing the index.php at your own risk, i will not be responsible if you messup something

now for the better way
open
\themes\dvtester\main.php

look for
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

located at the top around line 30
add above
error_reporting(0);

save and upload back to the server
this will fix the error as well i will again suggest to put this fix in the \themes\dvtester\main.php as mentioned it will be easier to spot bugs errors if you were to get a different theme or mod ..

all three of these methods will work to fix the error

again sorry for double post
Re: Bug Fix:dvtester Theme [message #2462 is a reply to message #2459] Fri, 20 March 2009 11:47 Go to previous message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
adding that to the index.php well only stop the error reporting in the index(home) page would be better to add it to header.php

http://a.imageshack.us/img831/5562/mybikes.png
Previous Topic:dvtester
Next Topic:Hypercube
Goto Forum:
  


Current Time: Wed Feb 08 21:23:13 GMT 2012

Total time taken to generate the page: 0.00724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software