Prosites Pricing Table Admin Error

I am receiving the following error on admin backend. It is within the Pro Sites > Pricing Table > Features Table

Warning: Invalid argument supplied for foreach() in /home/instapress/public_html/wp-content/plugins/pro-sites/pro-sites-files/modules/premium-themes.php on line 420

  • Vinod Dalvi
    • WP Unicorn

    Hi Luke,

    Sorry to hear of the problem you are having.

    I could confirm the issue on my test site using latest version of Pro Sites plugin and enabling its "Premium Themes" module.

    I have notified the developer about the issue so that it can be fixed.

    The issue will be fixed shortly.

    In the meanwhile to fix this issue try editing the following Pro Sites plugin file on line number 419 as displayed below.

    Pro Sites plugin file :
    wp-content/plugins/pro-sites/pro-sites-files/modules/premium-themes.php

    Before Editing :

    foreach( $allowed_themes as $theme => $level ) {
    	if( $level_id == $level ) {
    		$access = true;
    	}
    }

    After Editing :

    if( $allowed_themes != NULL ){
    	foreach( $allowed_themes as $theme => $level ) {
    		if( $level_id == $level ) {
    			$access = true;
    		}
    	}
    }

    Alternatively try using the attached modified file premium-themes.php and replace it with the file in your Pro Sites plugin directory on the above listed path.

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.