[Skip to main content](#vessel-content)

#   Google Analytics plugin causes white page

##

- **[fengel](/forum/user/37465-fengel "View fengel's Profile")**
- [![fengel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37465.jpg)](/forum/user/37465-fengel "View fengel's Profile") Topic Author
- [ Offline](/forum/user/37465-fengel)

Less More

- Posts: 27
- Thank you received: 4
-
-

9 years 9 months ago -  9 years 9 months ago [\#263405](#263405) by [fengel](/forum/user/37465-fengel "View fengel's Profile")  *[Google Analytics plugin causes white page](/forum/30-integrations/889051-google-analytics-plugin-causes-white-page#263405 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Chrome v56  I found an error in the plg&#95;system&#95;hikashopanalytics plugin where the rendered HTML is gone, thus resulting in a white page. This happens in all versions of Hikashop, but they have to be on PHP 7.  It turns out that the preg&#95;replace in the method onAfterRender(). This can be verified by checking for preg errors with this: preg&#95;last&#95;error(). For me, it returned an error code of 6. According to , this is a new code specific to PHP 7 and the only way to fix it is to turn off the PHP variable, pcre.jit.  Please add a fix for this.")* was created by *[fengel](/forum/user/37465-fengel "View fengel's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Chrome v56

I found an error in the plg_system_hikashopanalytics plugin where the rendered HTML is gone, thus resulting in a white page. This happens in all versions of Hikashop, but they have to be on PHP 7.

It turns out that the **preg\_replace** in the method **onAfterRender()**. This can be verified by checking for preg errors with this: **preg\_last\_error()**. For me, it returned an error code of 6.
According to [ this source](http://php.net/manual/en/pcre.constants.php#118538), this is a new code specific to PHP 7 and the only way to fix it is to turn off the PHP variable, **pcre.jit**.

Please add a fix for this.

Last edit: 9 years 9 months ago by [fengel](/forum/user/37465-fengel "View fengel's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODkwNTEtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY2F1c2VzLXdoaXRlLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

9 years 9 months ago [\#263413](#263413) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Analytics plugin causes white page](/forum/30-integrations/889051-google-analytics-plugin-causes-white-page#263413 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Chrome v56  I found an error in the plg&#95;system&#95;hikashopanalytics plugin where the rendered HTML is gone, thus resulting in a white page. This happens in all versions of Hikashop, but they have to be on PHP 7.  It turns out that the preg&#95;replace in the method onAfterRender(). This can be verified by checking for preg errors with this: preg&#95;last&#95;error(). For me, it returned an error code of 6. According to , this is a new code specific to PHP 7 and the only way to fix it is to turn off the PHP variable, pcre.jit.  Please add a fix for this.")*

Hi,

Thank you for your feedback. We've added a fix for that.
You can download the install package on our website and install it on yours and that should fix it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODkwNTEtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY2F1c2VzLXdoaXRlLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
