My website not open

How to reset functions

Can you please give us more info about your problem? :slightly_smiling_face:

1 Like

My website show error message error 500

https://infinityfree.net/support/http-error-500/

1 Like

please help me its too much imp for me today

Can you please help me to
resolve this problem

Did you click on the link I posted to see what are the solutions of the problem? If you don’t know where it is, click here.

yes but this link show solve error in wordpress only and I am not using wordpress

I am using os-class

Then try to enable Display Errors from the “Alter PHP Config” section of the Control Panel for your domain.

2 Likes

Parse error : syntax error, unexpected ‘else’ (T_ELSE) in /home/vol5_6/epizy.com/epiz_24915646/htdocs/oc-content/themes/osclasswizards_uf7d8s9/functions.php on line 1138

now i dont know what tyoe of error s this

all code is fine then where is the problem i can’t
understand

No it has syntax errors. Can you go to line 1138 and copy codes from line 1134 to 1139 and then paste here ?

}
	
	arsort($array);
	return	array_slice($array, 0, $limit);
}else{
	return false;
}
function osclasswizards_popular_regions($limit = 20){
	View::newInstance()->_exportVariableToView('list_regions', Search::newInstance()->listRegions('%%%%', '>') ) ;
	if(osc_count_list_regions() > 0 ) { 
		$array	=	array();
		while(osc_has_list_regions() ) {
			if( osc_list_region_items() > 0){
				$region_name			=	osc_list_region_name();
				$array[ $region_name ]	=	osc_list_region_items();
			}
		
		arsort($array);
		return	array_slice($array, 0, $limit);
	}else{
		return false;
	}
}

Full function code

FTP: VP Login

Username: epiz_24915646

Password: HIDDEN BY MOD

FTP Hostname: ftpupload.net

Port:21

IP: (185.27.134.11)

Flagged your post for sharing your fatal cpanel info.
Try this?

function osclasswizards_popular_regions($limit = 20){
 View::newInstance()->_exportVariableToView(‘list_regions’, Search::newInstance()->listRegions(’%%%%’, ‘>’) ) ;
 if(osc_count_list_regions() > 0 ) {
 $array = array();
 while(osc_has_list_regions() ) {
 if( osc_list_region_items() > 0){
  $region_name = osc_list_region_name();
  $array[ $region_name ] = osc_list_region_items();
 }
}
	arsort($array);
	return	array_slice($array, 0, $limit);

}else{
	return false;
}
}

That wouldn’t still work, because it uses different quotes and the else statement is still present, so closing brackets before the else statement would cause an error to be shown and won’t fix anything.

@Property, try this instead:

function osclasswizards_popular_regions($limit = 20){
    View::newInstance()->_exportVariableToView('list_regions', Search::newInstance()->listRegions('%%%%', '>') ) ;
    if(osc_count_list_regions() > 0 ) {
        $array = array();
        while(osc_has_list_regions() ) {
             if( osc_list_region_items() > 0){
                $region_name = osc_list_region_name();
                $array[ $region_name ] = osc_list_region_items();
                arsort($array);
                return array_slice($array, 0, $limit);
            }else{
	        return false;
            }
         }
     }
}
1 Like

FYI: I reset your account password, since you shared it publicly. Please remember that this is a public forum, and anything you post here can be viewed by anyone. Feel free to change the password again if you want to, just make sure you don’t reuse this password.

2 Likes

Fatal error : Allowed memory size of 165675008 bytes exhausted (tried to allocate 52581313 bytes) in /home/vol5_6/epizy.com/epiz_24915646/htdocs/oc-includes/osclass/classes/ImageProcessing.php on line 97

I dont knw how to solve this
This error message show when i try to upload images