HHVM compatibility : Case insensitive constant names not supported

Hi, when trying HHVM the error logs fill up with errors like these:

[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000001] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php on line 27
[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000002] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php on line 36
[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000003] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php on line 37
[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000004] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php on line 38
[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000005] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php on line 53
[Mon May 23 16:36:06 2016] [hphp] [7875:7f7a76fff700:6:000006] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/wordpress-google-maps/lib/class_agm_plugins_handler.php on line 8
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000001] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 28
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000002] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 29
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000003] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 30
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000004] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 39
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000005] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 40
[Mon May 23 16:36:26 2016] [hphp] [7875:7f7a65bff700:9:000006] [] Warning: Case insensitive constant names are not supported in HipHop in /.../.../.../wp-content/plugins/slide-in/loader.php on line 41

These are related to Google Maps and Slide-in but looking around the forums there are many other plugins that suffer this issue with HipHop Virtual Machine...

Will this be dealt with or is HHVM not considered as a viable/stable alternative (yet) ?

  • Vaughan
    • Support/SLS MockingJay

    Hi Rolf,

    Hope you're well?

    I've added this to the features list for the developers to look at.

    Note, this is only happening in the free version of the plugin available on wordpress.org.

    The pro version shouldn't have this issue as it isn't using case-insensitive parameter.

    For now, you could edit the files mentioned in the error reports and remove the true from each define.

    https://premium.wpmudev.org/project/wordpress-google-maps-plugin/

    Take for instance line 27 in;

    /wp-content/plugins/wordpress-google-maps/wpmu_dev_maps_plugin.php

    define ('AGM_PLUGIN_SELF_DIRNAME', basename(dirname(__FILE__)), true);

    change this to;

    define ('AGM_PLUGIN_SELF_DIRNAME', basename(dirname(__FILE__)));

    Notice, i removed the , true at the end. Do this for all other defines on the lines mentioned in the error reports.

    Hope this helps

  • Rolf
    • WPMU DEV Initiate

    Oh right, yes. I was assuming the Google Maps plugin would simply replace the Lite version but that's not the case. Will move to the pro version :slight_smile:

    The Slide-in plugin came straight from WPMU DEV however... So I'll remove the second parameters there as you suggested. Thanks !

  • Rolf
    • WPMU DEV Initiate

    After switching to the pro Google Maps version:
    Case insensitive constant names are not supported in HipHop in /xxx/xxx/xxx/wp-content/plugins/wpmu_dev_maps_plugin/inc/class-agm-post-indexer.php on line 78

    And here's one from Upfront:
    Case insensitive constant names are not supported in HipHop in /xxx/xxx/xxx/wp-content/themes/upfront/library/class_upfront_debug.php on line 82

    And while I'm in the error logs an unrelated but very frequent error:
    trim() expects parameter 1 to be string, array given in /xxx/xxx/xxx/wp-content/plugins/wpmu-dev-seo/wds-files/wds-onpage/wds-onpage.php on line 63

    You see, HHVM does not have log rotation, so I hope to keep the error log growing as slow as possible :wink:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.