Jump to content
  • 0

H>Orange_theme


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello everyone kindly put in the right section if i posted it in the wrong section i cant put some thread in web support section thank you

im using orange_theme from skyzone during my test in offline server its working fine but when i upload it online or in live server i encounter  this error then i turn on the debugmode in application this error appears  hope someone can help me thanks in advance

Quote

Parse error: syntax error, unexpected integer "0" in /var/www/html/themes/orange_themes/skyzone_config.php on line 97

 

1111.png

Edited by GM Winter
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

1 hour ago, GM Winter said:

hello everyone kindly put in the right section if i posted it in the wrong section i cant put some thread in web support section thank you

im using orange_theme from skyzone during my test in offline server its working fine but when i upload it online or in live server i encounter  this error then i turn on the debugmode in application this error appears  hope someone can help me thanks in advance

 

1111.png

then have u tried to check that line in the files ? what the 0 integer does there.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

10 minutes ago, Chaos92 said:

then have u tried to check that line in the files ? what the 0 integer does there.

here sir 

Quote

<?php require_once (FLUX_ADDON_DIR."/skyzone/modules/main/index.php"); #Skyzone Configure ?>

<?php
# define the source of navbar data source
# 0 = as defined in flux's config/application.php
# 1 = use this config file.
//error_reporting(0);
$config['server_name'] = "Leaf Ragnarok"; //Server Name
$config['navbar_source'] = 1;

$ONLINE = $info['players_online'];

if($ONLINE == 0){
    $config['status_online'] = array( './img/7427.png' );
    $config['online'] = array( $ONLINE );    
}else{
    $config['status_online'] = array( './img/7429.png' );
    $config['online'] = array( $ONLINE );
}


#define custom navigation instead of using flux
if($session->isLoggedIn())
{
    #display to user already login
    $config['nav_panel'] = array(
        array(
            'MY ACCOUNT', //NAV TITLE
            '',  //USE ONLY FOR MODAL
            $this->url('account','view'), //URL LINK
        ),
        array(
            'LOGOUT', //NAV TITLE
            '',  //USE ONLY FOR MODAL
            $this->url('account','logout'), //URL LINK
        ),
        
    );
}
else
{    
    $config['nav_panel'] = array(
        array(
            'LOGIN PANEL', //NAV TITLE
            '',  //USE ONLY FOR MODAL
            $this->url('account','login'), //URL LINK
        ),
        array(
            'REGISTER', //NAV TITLE
            '',  //USE ONLY FOR MODAL
            $this->url('account','create'), //URL LINK
        ),
        
    );
}

#display to user who not login
if(!($params->get('module') == 'main' && $params->get('action') == 'index')){
    //Display kabag nasa ibang page
    $config['div_class'] = array(
        'div_value' => 'mymain2',
    );
}else{
    //Walang Display kapag nasa Main/Index Page
    $config['div_class'] = array(
        'div_value' => '',
    );    
}


if(!($params->get('module') == 'main' && $params->get('action') == 'index')){
    $config['nav_index'] = array(
        array(
            'HOME', 
            '',
            $this->url('main'),
        ),
        array(
            'DONATION',
            ' ',
            $this->url('donate'),
        ),
        array(
            'STAFF',
            ' ',
            $this->url('pages', 'staff'),
        ),
        array(
            'SERVER INFORMATION',
            ' ',
            $this->url('pages', 'information'),
        ), 
    );
}else{ 
    $config['nav_index'] = array(
        array(
            'HOME', #[0]
            'menu-active', #[1]
            '#home', #[2]
        ),
        array(
            'About Us', #[0]
            '', #[1]
            '#about', #[2]
        ),
        array(
            'Server Info', #[0]
            '', #[1]
            '#serverinfo', #[2]
        ),
        array(
            'Downloads', #[0]
            '', #[1]
            '#download', #[2]
        ),
        array(
            'Community', #[0]
            '', #[1]
            '#community', #[2]
        ),        
    );
}

//ABOUT US
$config['social_links'] = array(
    // EXTRA LINKS
    'youtube' => 'https://www.youtube.com/watch?v=BqijsweJzFQ', #API CALLS
);

//SERVER INFORMATION
$config['server_information'] = array(
        array(
            './img/npcs/1.png', #[0]
            'General information', #[1]
            'Max Base/Job:', #[2]
            '99/50', #[3]
        ),        
        array(
            './img/npcs/2.png', #[0]
            'General information', #[1]
            'Server Rates:', #[2]
            '5.0x/3.0x/3.0x', #[3]
        ),
        array(
            './img/npcs/3.png', #[0]
            'General information', #[1]
            'Max Stats:', #[2]
            '99', #[3]
        ),
        array(
            './img/npcs/4.png', #[0]
            'General information', #[1]
            'Max Aspd:', #[2]
            '190', #[3]
        ),
        array(
            './img/npcs/5.png', #[0]
            'General information', #[1]
            'Drop Normal:', #[2]
            '3%', #[3]
        ),
        array(
            './img/npcs/6.png', #[0]
            'General information', #[1]
            'Drop MVP:', #[2]
            '1%', #[3]
        ),
        array(
            './img/npcs/8.png', #[0]
            'General information', #[1]
            'King of Emperium:', #[2]
            'Tuesday & Thursday & Sunday 9PM - 10PM', #[3]
        ),
        array(
            './img/npcs/7.png', #[0]
            'General information', #[1]
            'WoE Schedule:', #[2]
            'Monday, Wednesday & Friday 9PM - 10PM', #[3]
        ),
        array(
            './img/npcs/9.png', #[0]
            'General information', #[1]
            'Events:', #[2]
            'Automatic open hourly', #[3]
        ),            
);

#DOWNLOAD LINKS 
$config['downloads'] = array(
    'direct_lite' => '#dlite',
    'mediafire_lite' => '#mlite',
    'derect_full' => '#dfull',
    'mediafire_full' => '#mfull',
    'derect_data' => '#ddata',
    'mediafire_data' => '#mdata',
);

$config['community'] = array(
    'discord' => 'https://discordapp.com/widget?id=716136830399021057&theme=dark',
    'facebook' => 'https://www.facebook.com/SkyzoneSolutions/',
);

$config['footer_links'] = array(
    'About Odin' => '#',
    'Community' => '#',
    'Rules' => $this->url('pages','content&path=rules'),
    'Privacy Policy' => '#',
    'Terms of Service' => $this->url('service','tos'),
    'Rankings' => $this->url('ranking','character'),
    'Donate' => $this->url('donate'),
    'Wiki' => '#',
    'Forums' => '#',
    'Information' => $this->url('server', 'info'),
);

222.png

Edited by GM Winter
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   0
  • Joined:  08/27/13
  • Last Seen:  

On 4/24/2023 at 8:37 PM, GM Winter said:

here sir 

222.png

mine is working ? i think the error was on your fluxcp config take a look at it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

I suppose your offline server is still using PHP below version 8 (like 7.4 which is EOL since Nov 2022), while your online server is already using PHP 8.


The problem is, #[0] (or generally #[identifier]) is considered an attribute since PHP 8, that is located at an invalid position, therefore resulting in a parse error. In older versions of PHP # was basically the same as // and just started a single-line comment (which it is supposed to be in your file as well).

An easy fix is to just mass replace all occurances of #[ with # [ (add a space between) or replace with slash style comments (//[).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...