Error Blank Website

I think your .htaccess file IS the cause.

What is this line for?
image
My understanding of this is that you cannot have this on your own domain. The HTTP_REFERER blocks people when referred from a URL. (So your blocking people from your own domain, google, duckduckgo, bing, etc???). It makes me think that your browser (because its refering from your site to your site) is trying to show a 403 error (Forbidden) but because its blocked by that rule, it shows nothing.
Why would you want to block all of this?

Please try removing ALL of your RewriteCond rules, clear your cache, and see if it works.

Yes

The .htaccess File is NOT the cause, with or WITHOUT those lines of code the Web is still Blank, the information for those lines is here. ( https://www.hostinger.es/tutoriales/evitar-hotlink )

Nowhere in that article does it state anything about your line 13. As I said before, HTTP_REFERER blocks people on a referring URL and is not to be used with your own domain. Please remove those lines, CLEAR YOUR CACHE, and try again. Please remove those lines, and let us know here (You can make a backup first if you want) and we will check it.
Thanks.

2 Likes

As I said, I have deleted those lines and still the Web remains blank, even after having cleared the cache.

with or without those codes the Web is still blank.

those codes are for the web hotlink.

As I said, I already tried deleting those htaccess codes and even so the web is still blank, even with the cache cleared.

Remove the lines again, and let us test it please.
Thanks.

I have deleted those lines of code from the .htaccess again, clean the CloudFlare cache and clean ALL the cache of my browser, wait a few minutes, go back to my website and it is still in WHITE, reload the page and nothing, ALL this now I had done it as I mentioned before, this time I have taken screenshots for EVERYONE to see, so the problem is NOT those lines of code, since they are ONLY for the Hotlink of the Web ( Hotlinking: What Is It and Why Is It Bad? ), they also said that it could be that the IP, but they have already commented that they are already working, so it is not that either, I think the problem is in the web, but I do not know where, please help me to solve this.

@VideojuegosEstudiosC answer this.

If it has content.

Remember php is a server side language, meaning that if you don’t make it to output any thing to the screen of course the page will be blank.

2 Likes

I already know that, what I want to know is how to solve this, the Web worked previously, but I uploaded an update and it stayed that way, I don’t know what the problem is.

Please copy and paste the PHP file here

Unless you include html content in there, but yeah.

View the source (ctrl+u). What does it show?

1 Like

This is the code of my index.php

require_once('assets/init.php');

$page = '';
if (isset($_GET['link1'])) {
    $page = $_GET['link1'];
} 

else {
    $page = 'home';
}

$og_meta_tags = '';

if ($fl['loggedin'] == true) {
    $update = FL_UpdateUserData($fl['user']['user_id'], array('last_active' => time()));
} 

else if (!empty($_SERVER['HTTP_HOST'])) {
    // $server_scheme = @$_SERVER["HTTPS"];
    // $pageURL = ($server_scheme == "on") ? "https://" : "http://";
    // $http_url = $pageURL . $_SERVER['HTTP_HOST'];
    // $url = parse_url($fl['config']['site_url']);
    // if (!empty($url)) {
    //     if ($url['scheme'] == 'http') {
    //         if ($http_url != 'http://' . $url['host']) { 
    //            header('Location: ' . $fl['config']['site_url']);
    //            exit();
    //         }
    //     } 
    //     else {
    //         if ($http_url != 'https://' . $url['host']) { 
    //            header('Location: ' . $fl['config']['site_url']);
    //            exit();
    //         }
    //     }
    // }
}


switch ($page) {
    case 'home':
        include('sources/home.php');
        break;
    case 'activate':
        include('sources/activate.php');
        break;
    case 'login':
        include('sources/login.php');
        break;
    case 'register':
        include('sources/register.php');
        break;
    case 'timeline':
        include('sources/timeline.php');
        break;
    case 'logout':
        include('sources/logout.php');
        break;
    case 'forgot_password':
        include('sources/forgot_password.php');
        break;
    case 'reset-password':
        include('sources/reset_password.php');
        break;
    case 'profile':
        include('sources/profile.php');
        break;
    case 'settings':
        include('sources/settings.php');
        break;
    case 'create-new':
        include('sources/create_new.php');
        break;
    case 'news':
        include('sources/news.php');
        break;
    case 'lists':
        include('sources/lists.php');
        break;    
    case 'videos':
        include('sources/videos.php');
        break;   
    case 'music':
        include('sources/music.php');
        break;    
    case 'polls':
        include('sources/polls.php');
        break;
    case 'quiz':
        include('sources/quiz.php');
        break; 
    case 'delete-post':
        include('sources/delete_post.php');
        break;
    case 'edit-post':
        include('sources/edit_post.php');
        break;
    case 'admincp':
        header("Location: " . FL_Link('admin-cp'));
        exit();
        break;
    case 'search':
        include('sources/search.php');
        break;
    case 'latest-news':
        include('sources/latest-news.php');
        break;   
    case 'latest-lists':
        include('sources/latest-lists.php');
        break; 
    case 'latest-videos':
        include('sources/latest-videos.php');
        break; 
    case 'latest-music':
        include('sources/latest-music.php');
        break; 
    case 'latest-quizzes':
        include('sources/latest-quizzes.php');
        break;
    case 'latest-polls':
        include('sources/latest-polls.php');
        break; 
    case 'saved-drafts':
        include('sources/saved-drafts.php');
        break; 
    case 'create-new-mobile':
        include('sources/create-new-mobile.php');
        break;
    case 'terms':
        include('sources/terms.php');
        break;
    case 'tags':
        include('sources/tags.php');
        break;
    case 'feeds':
        include('sources/feeds.php');
        break;
    case 'rss':
        include('sources/rss.php');
        break;
    case 'post_data':
        include('sources/post_data.php');
        break;
    case 'go_pro':
        include('sources/go_pro/content.php');
        break;
    case 'ads':
        include('sources/ads/ads.php');
        break;
    case 'create_ad':
        include('sources/ads/create.php');
        break;
    case 'edit_ad':
        include('sources/ads/edit_ad.php');
        break;
    case 'switch_account':
        include('sources/switch_account.php');
        break;
    case 'live':
        include('sources/live.php');
        break;
    case 'site-pages':
        include('sources/site_pages.php');
        break;
        
}

if (empty($fl['content'])) {
    include('sources/404.php');
}


$background        = '';
$extra_js          = '';
$over = '';
if ($fl['page'] == 'forgot_password' || $fl['page'] == 'register' || $fl['page'] == 'login') {
    $background = 'body{background: url(' . $config['theme_url'] . '/img/background.jpg) repeat fixed !important;}';
    $over = '<div class="overlay"></div>';
}
if ($fl['page'] == 'news' || $fl['page'] == 'lists' || $fl['page'] == 'polls' || $fl['page'] == 'videos' || $fl['page'] == 'music' || ($fl['page'] == 'quiz' && empty($fl['quiz-result']))) {
    switch ($fl['page']) {
        case 'news':
            $fl['og_meta'] = $fl['news'];
            break;
        case 'polls':
            $fl['og_meta'] = $fl['polls'];
            break;
        case 'lists':
            $fl['og_meta'] = $fl['lists'];
            break;
        case 'videos':
            $fl['og_meta'] = $fl['videos'];
            break;
        case 'music':
            $fl['og_meta'] = $fl['music'];
            break;
        case 'quiz':
            $fl['og_meta'] = $fl['quiz'];
            break;
    }
    $og_meta_tags = FL_Loadpage('header/og-meta', array(
        'OG_TITLE' => $fl['title'],
        'OG_DESC' =>  $fl['description'],
        'OG_IMAGE' => FL_GetMedia($fl['og_meta']['image'])
    ));
}
if ($fl['page'] == 'create_new' || $fl['page'] == 'edit-post') {
    $extra_js = FL_Loadpage('extra-js');
}

if ($fl['page'] == 'quiz' && !empty($fl['quiz-result'])) {
    $og_meta_tags = FL_Loadpage('header/og-meta', array(
        'OG_TITLE' => $fl['quiz-result']['title'],
        'OG_DESC' =>  $fl['quiz-result']['text'],
        'OG_IMAGE' => $fl['quiz-result']['image']
    ));
}

if ($fl['loggedin'] == true) {
    $header = FL_LoadPage('header/is-logged', array(
        'USER_DATA' => $fl['user'],
    ));
} 

else {
    $header = FL_LoadPage('header/not-logged');
}


/* Get active Breaking news */ 
$breaking_news_data   = "";
if ($fl['page'] != 'profile') {
    $fetch_brnews_data_array = array(
        'table' => T_BR_NEWS,
        'column' => 'id',
        'order' => array(
            'type' => 'DESC',
            'column' => 'id'
        ),
        'where' => array(
            array(
                'column' => 'expire',
                'value' =>  time(),
                'mark' => '>='
            ),
            array(
                'column' => 'active',
                'value' =>  1,
                'mark' => '='
            ),
        ),
        'final_data' => array(
            array(
                'function_name' => 'FL_GetBrNews',
                'column' => 'id'
            )
        )
    );
    
    $fl['breaking_news']  = FL_FetchDataFromDB($fetch_brnews_data_array);

    if (count($fl['breaking_news']) > 0) {
        $breaking_news_data = FL_LoadPage('br_news/content');
    }
}
/* Get active Announcements */ 
$announcement             = "";
if ($fl['loggedin'] === true && $fl['page'] != 'profile') {

    $fl['announcements']  = FL_GetAnnouncments();
    if(is_array($fl['announcements'])) {
        foreach ($fl['announcements'] as $fl['announcement']){
            $announcement   =  FL_LoadPage("announcement/content",array(
                'ANN_ID'    => $fl['announcement']['id'],
                'ANN_TEXT'  => FL_Decode($fl['announcement']['text']),
            ));
        }
    }
}

/* Get active Announcements */ 

$final_content = FL_LoadPage('container', array(
    'CONTAINER_TITLE' => $fl['title'],
    'CONTAINER_DESC' => $fl['description'],
    'CONTAINER_KEYWORDS' => $fl['keywords'],

    'OG_META_TAGS' => $og_meta_tags,

    'HEADER_HTML' => FL_LoadPage('header/content', array(
        'PAGE_IS_HOME' => ($fl['page_home'] == true || strpos($fl['page'], 'latest-') !== false) ? 'container-home' : '',
        'LOGGEDIN_HEADER' => $header,
		'ACTIVE_NAVBAR_HOME' => ($fl['page'] == 'home') ? 'active' : '',
        'ACTIVE_NAVBAR_NEWS' => ($fl['page'] == 'latest-news') ? 'active' : '',
        'ACTIVE_NAVBAR_LISTS' => ($fl['page'] == 'latest-lists') ? 'active' : '',
        'ACTIVE_NAVBAR_VIDEOS' => ($fl['page'] == 'latest-videos') ? 'active' : '',
        'ACTIVE_NAVBAR_MUSIC' => ($fl['page'] == 'latest-music') ? 'active' : '',
        'ACTIVE_NAVBAR_POLLS' => ($fl['page'] == 'latest-polls') ? 'active' : '',
        'ACTIVE_NAVBAR_QUZZES' => ($fl['page'] == 'latest-quizzes') ? 'active' : '',
    )),
    'FOOTER_HTML' => FL_LoadPage('footer/content'),

    'BACKGROUND_IMAGE' => $background,
    'OVER' => $over,
    'CONTAINER_SIZE' => ($fl['page_home'] == true || strpos($fl['page'], 'latest-') !== false) ? 'container-home' : '',
    'CONTENT_CONTAINER' => ($fl['page'] == 'profile') ? 'profile-content-container' : 'content-container',
    'LATEST_CONTAINER' => (strpos($fl['page'], 'latest-') !== false) ? 'latest-container' : '',
    'WHITE_BACKGROUND' => ($fl['page'] == 'news' || $fl['page'] == 'delete-post') ? 'class="news-page"' : '',

    'EXTRA_JS_CODE' => $extra_js,
    'BR_NEWS' => ($fl['page'] != 'login' && $fl['page'] != 'register' && $fl['page'] != 'reset_password' && $fl['page'] != 'forgot_password') ? $breaking_news_data: '',
    'ANNOUNCEMENT' => $announcement,

    'CONTAINER_CONTENT' => $fl['content'],
    'HEADER_AD' => FL_GetAd('header', false),
    'FOOTER_AD' => FL_GetAd('footer', false),
    'THEME_SWITCHER' => FL_LoadPage('third-party/theme-changer')
));

echo $final_content;
mysqli_close($sqlConnect);
unset($fl);

And this is the code of my htaccess:

ErrorDocument 400 https://videojuegosestudios.ga/404
ErrorDocument 401 https://videojuegosestudios.ga/404
ErrorDocument 403 https://videojuegosestudios.ga/404
ErrorDocument 404 https://videojuegosestudios.ga/404
ErrorDocument 503 https://videojuegosestudios.ga/404

RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.php?link1=home [NC,QSA]
RewriteRule ^news/(.*)$ index.php?link1=news&id=$1 [NC,QSA]
RewriteRule ^lists/(.*)$ index.php?link1=lists&id=$1 [NC,QSA]
RewriteRule ^polls/(.*)$ index.php?link1=polls&id=$1 [NC,QSA]
RewriteRule ^quiz/(.*)$ index.php?link1=quiz&id=$1 [NC,QSA]
RewriteRule ^videos/(.*)$ index.php?link1=videos&id=$1 [NC,QSA]
RewriteRule ^music/(.*)$ index.php?link1=music&id=$1 [NC,QSA]
RewriteRule ^edit-post/(.*)$ index.php?link1=edit-post&id=$1 [NC,QSA]
RewriteRule ^delete-post/(.*)$ index.php?link1=delete-post&id=$1 [NC,QSA]
RewriteRule ^settings/(.*)/(.*)$ index.php?link1=settings&page=$1&user=$2 [NC,QSA]
RewriteRule ^settings/(.*)$ index.php?link1=settings&page=$1 [NC,QSA]
RewriteRule ^admin-cp$ admincp.php [NC,QSA]
RewriteRule ^admin-cp/(.*)$ admincp.php?page=$1 [NC,QSA]
RewriteRule ^admincp/(.*)$ index.php?link1=admincp&page=$1 [NC,QSA]
RewriteRule ^admin-cdn/(.*)$ admin-panel/$1 [L]
RewriteRule ^tags/(.*)$ index.php?link1=tags&tag=$1 [NC,QSA]
RewriteRule ^feeds/rss(/?|)$ index.php?link1=feeds&page=home [NC,QSA]
RewriteRule ^post_data/(.*)/(.*)(/?|)$ index.php?link1=post_data&post_type=$1&id=$2 [NC,QSA]
RewriteRule ^site-pages/(.*)$ index.php?link1=site-pages&page_name=$1 [NC,QSA]

RewriteRule ^terms/(.*)$ index.php?link1=terms&type=$1 [NC,QSA]
RewriteRule ^go_pro(?:\/{0,1}|)$ index.php?link1=go_pro [NC,QSA]

RewriteRule ^latest-(.*)/(\d+)$ index.php?link1=latest-$1&c_id=$2 [NC,QSA]
RewriteRule ^latest-(.*)/rss(/?|)$ index.php?link1=rss&page=$1 [NC,QSA]

RewriteRule ^ads(?:\/?|)$ index.php?link1=ads [NC,QSA]
RewriteRule ^ads/create-new(?:\/?|)$ index.php?link1=create_ad [NC,QSA]
RewriteRule ^ads/edit/([0-9]+)(?:\/?|)$ index.php?link1=edit_ad&ad_id=$1 [NC,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^@([^\/]+)(\/|)$  index.php?link1=profile&u=$1 [QSA]
RewriteRule ^@([^\/]+)(\/|)/(.*)$  index.php?link1=profile&u=$1&page=$2 [QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]+)(\/|)$  index.php?link1=$1 [QSA]

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/opentype
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

Please help me with this problem!!!.

Roll back the update?

1 Like

If I try to open your website, I see a 500 error. If I enable display_errors, I see no output. That probably means your website software is explicitly suppressing error messages, which makes debugging very hard.

Please try asking the script developer on what to do next. After all, you paid $50 for the script on CodeCanyon, so they should be able to help you.

And if you did not pay that, please remember that using pirated software is strictly forbidden on our hosting.

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.