Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Blank/White page
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-05-19 11:16:06
Hi guys, I want to ask you
when I click on Blocks in the Admin Panel
I get a blank/white page where I may have made a mistake.
SQL Error log is empty

Thanks and Regards

Last edited by coco on 2021-05-19 11:17:13
2021-05-19 13:54:40
there is some ways to find out without sql log

1) is it on admin page when click blocks image or when click edit block button

2) how long has it not been working (maybe a new edit broke it)

3) in admincp.php at top after <?php add this code (it will show all errors - but do not worry most are nothing to worry about) just click blocks image and a error should pop up at the top of white page

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Do NOT keep that code in admincp.php we just find error then remove it
2021-05-19 18:12:29
This is the error

Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /htdocs/backend/functions.php on line 5


And when replace new error

Fatal error: Cannot redeclare spl_autoload_register() in /htdocs/backend/functions.php on line 5



2021-05-19 18:22:51
Zip your admincp.php file and post and I'll run it through a code comparison. It might be a white space somewhere
2021-05-19 18:29:20
Ok thanks M-jay

admincp.php.zip
File missing

2021-05-19 18:52:49
i forgot how big the admincp file is lol 5000 lines.

I have found issue you seem to have deleted the block section add this at bottom before ?>


///////////////// BLOCKS MANAGEMENT /////////////
if ($action=="blocks" && $do=="view") {
   stdhead(T_("_BLC_MAN_"));

   navmenu();

   begin_frame(T_("BLC_VIEW"));

   $enabled = SQL_Query_exec("SELECT named, name, description, position, sort FROM blocks WHERE enabled=1 ORDER BY position, sort");
   $disabled = SQL_Query_exec("SELECT named, name, description, position, sort FROM blocks WHERE enabled=0 ORDER BY position, sort");
   
   print("<table align=\"center\" width=\"600\"><tr><td>");
   print("<table class=\"table_table\" cellspacing=\"1\" align=\"center\" width=\"100%\">".
           "<tr>".
               "<th class=\"table_head\">".T_("_BLC_ENABLED_")."</th>".
           "</tr>".
       "</table><br />".
       "<table class=\"table_table\" cellspacing=\"1\" align=\"center\" width=\"100%\">".
           "<tr>".
               "<th class=\"table_head\">".T_("NAME")."</th>".
               "<th class=\"table_head\">Description</th>".
               "<th class=\"table_head\">Position</th>".
               "<th class=\"table_head\">Sort<br />Order</th>".
               "<th class=\"table_head\">Preview</th>".
           "</tr>");
       while($blocks = mysqli_fetch_assoc($enabled)){
       if(!$setclass){
           $class="table_col2";$setclass=true;}
       else{
           $class="table_col1";$setclass=false;}
   
           print("<tr>".
                       "<td class=\"$class\" valign=\"top\">".$blocks["named"]."</td>".
                       "<td class=\"$class\">".$blocks["description"]."</td>".
                       "<td class=\"$class\" align=\"center\">".$blocks["position"]."</td>".
                       "<td class=\"$class\" align=\"center\">".$blocks["sort"]."</td>".
                       "<td class=\"$class\" align=\"center\">[<a href=\"blocks-edit.php?preview=true&name=".$blocks["name"]."#".$blocks["name"]."\" target=\"_blank\">preview</a>]</td>".
                   "</tr>");
       }
   print("<tr><td colspan=\"5\" align=\"center\" class=\"table_head\"><form action='blocks-edit.php'><input type='submit' value='Edit' /></form></td></tr>");
   print("</table>");
   print("</td></tr></table>");    
   
   print("<hr />");
   $setclass=false;
   print("<table align=\"center\" width=\"600\"><tr><td>");
   print("<table class=\"table_table\" cellspacing=\"1\" align=\"center\" width=\"100%\">".
           "<tr>".
               "<th class=\"table_head\">Disabled Blocks</th>".
           "</tr>".
       "</table><br />".
       "<table class=\"table_table\" cellspacing=\"1\" align=\"center\" width=\"100%\">".
           "<tr>".
               "<th class=\"table_head\">".T_("NAME")."</th>".
               "<th class=\"table_head\">Description</th>".
               "<th class=\"table_head\">Position</th>".
               "<th class=\"table_head\">Sort<br />Order</th>".
               "<th class=\"table_head\">Preview</th>".
           "</tr>");
       while($blocks = mysqli_fetch_assoc($disabled)){
       if(!$setclass){
           $class="table_col2";$setclass=true;}
       else{
           $class="table_col1";$setclass=false;}
   
           print("<tr>".
                       "<td class='$class' valign=\"top\">".$blocks["named"]."</td>".
                       "<td class='$class'>".$blocks["description"]."</td>".
                       "<td class='$class' align=\"center\">".$blocks["position"]."</td>".
                       "<td class='$class' align=\"center\">".$blocks["sort"]."</td>".
                       "<td class='$class' align=\"center\">[<a href=\"blocks-edit.php?preview=true&name=".$blocks["name"]."#".$blocks["name"]."\" target=\"_blank\">preview</a>]</td>".
                   "</tr>");
       }
   print("<tr><td colspan=\"5\" align=\"center\" valign=\"bottom\" class=\"table_head\"><form action='blocks-edit.php'><input type='submit' value='Edit' /></form></td></tr>");
   print("</table>");
   print("</td></tr></table>");    
   end_frame();
   stdfoot();    
}

2021-05-19 19:18:09
Thank you very much M-jay.
I am very stupid.
It was without wanting to.

Thanks again and Regards for all
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728