• Resolved cc427

    (@cc427)


    Hi,

    One of my widgets wasn’t working properly so I copy and pasted some text (as per my Theme support’s recommendation) into the relevant widget file and uploaded it to the theme via my FTP (FileZilla).

    According to FileZilla “Directory listing successful”

    When I refreshed my website, Asilahinfo.com all I got was a blank screen. Same when I went to my wp admin page.

    What happened?

    Here is the code I changed:

    if(get_post_meta($post->ID,'zooming_factor',true)){
    $scale = 13;
    } else {
    $scale = 13;
    }

    Can anyone see an error here?

    The widget is a map widget and I was trying to change the scale.

    Very grateful for your comments.

    Thank you.

    Excerpt of file with changed code.

    {
    	$map_type='ROADMAP';
    }elseif($map_type=='Satellite Map')
    {
    	$map_type='SATELLITE';
    }elseif($map_type=='Hybrid Map')
    {
    	$map_type='TERRAIN';
    } else {
    	$map_type='ROADMAP';
    if(get_post_meta($post->ID,'zooming_factor',true)){
    $scale = 13;
    } else {
    $scale = 13;
    }
    
    if( $post->post_type== CUSTOM_POST_TYPE1)
    {
    	$cagInfo = wp_get_object_terms($post->ID,CUSTOM_CATEGORY_TYPE1,$args);
    }else
    {
    	$cagInfo = wp_get_object_terms($post->ID,CUSTOM_CATEGORY_TYPE2,$args);
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • What theme is this? Try deactivating the theme by changing the name on the theme’s folder via FileZilla.

    Thread Starter cc427

    (@cc427)

    Hi,

    Thank you for your comment. I just fixed it.

    I was missing a }

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank screen’ is closed to new replies.