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.
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;
}
}
}
}
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.
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
It looks that the images you’re uploading are over 10 MB or they’ve big size Or that problem is due your codes:
https://infinityfree.net/support/fatal-error-allowed-memory-size-exhausted/
It means that your script has used up the ram limit trying to parse (compile) it.