WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blank screen (3 posts)

  1. cc427
    Member
    Posted 9 months ago #

    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);
    }
  2. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    What theme is this? Try deactivating the theme by changing the name on the theme's folder via FileZilla.

  3. cc427
    Member
    Posted 9 months ago #

    Hi,

    Thank you for your comment. I just fixed it.

    I was missing a }

    Cheers.

Reply

You must log in to post.

About this Topic