WordPress.org

Support

Support » Themes and Templates » [Resolved] Blank screen

[Resolved] Blank screen

  • 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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Blank screen’ is closed to new replies.