Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Chris Daley

    (@phxchris)

    Saw the same problems on one of my sites. Turned out that there were space characters at the beginning and end of the Google API key value. (Introduced by a recent plugin updates?)

    Remove the leading and trailing spaces and reload the event page.

    You should also deal with the Google Maps Platform billing changes if you have not already.

    Yes, seeing “[] operator not supported for strings” errors in classes/em-events.php, line 63.

    If you change line 36 in classes/em-events.php to $groupby_sql = array(); the issue goes away and the rest of the code appears to be working correctly.

    • This reply was modified 9 years, 5 months ago by Chris Daley.

    Seeing “[] operator not supported for strings” errors (em-events.php, line 63) when using PHP 7.1.

    From the PHP.net 7.1 Backward incompatible changes page, Applying the empty index operator to a string (e.g. $str[] = $x) throws a fatal error instead of converting silently to array.

    If they are going to PHP 7.1, vs. 7.0, this plugin will fail.

    • This reply was modified 9 years, 5 months ago by Chris Daley. Reason: Added Backward Incompatible Change info
    Thread Starter Chris Daley

    (@phxchris)

    Running Apache/2.4.10 (Win64) and PHP 5.5.18 on a Windows 7 laptop.

    Did a fresh install, activated Akismet, installed Tribulant Slideshow Gallery, and set Slideshow > Configuration Debug and WP_DEBUG on.

    Did not get any error messages. The HTML shows that processing stopped(?) after some slideshow-gallery jQuery code was generated…

    <script type='text/javascript' src='http://xwptest/wp-content/plugins/slideshow-gallery/js/colorbox.js?ver=1.3.19'></script>
    <script type='text/javascript' src='http://xwptest/wp-content/plugins/slideshow-gallery/js/admin.js?ver=1.0'></script>
    <script type="text/javascript">
    var GalleryAjax = "http://xwptest/wp-content/plugins/slideshow-gallery/slideshow-gallery-ajax.php";
    var slideshowajax = "http://xwptest/wp-admin/admin-ajax.php";
    
    jQuery(document).ready(function() {
    	if (jQuery.isFunction(jQuery.fn.colorbox)) { jQuery('.colorbox').colorbox({maxWidth:'100%', maxHeight:'100%'}); }
    
    	if (jQuery.isFunction(jQuery.fn.tooltip)) {
    		jQuery(".galleryhelp a").tooltip({
    			tooltipClass: 'slideshow-ui-tooltip',
    			content: function () {
    	            return jQuery(this).prop('title');
    	        },
    	        show: null,
    	        close: function (event, ui) {
    	            ui.tooltip.hover(
    	            function () {
    	                jQuery(this).stop(true).fadeTo(400, 1);
    	            },
    	            function () {
    	                jQuery(this).fadeOut("400", function () {
    	                    jQuery(this).remove();
    	                })
    	            });
    	        }
    		});
    	}
    });
    </script>

    Also checked the Apache logs and found no problems.

    Deactivate Slideshow Gallery and the Akismet settings page is again visible.

    Hope that helps.

Viewing 4 replies - 1 through 4 (of 4 total)