Php Config File Errors in Cornerstone & Woocommerce: Icon Stack

Hi,

I am trying to check PHP 7.0 compatibility and I am receiving these errors which seem to be a common issue. I am currently using Steground and trying to activate my super cacher and dynamic caching plugin. I saw this thread, but no solution. Please help. https://theme.co/apex/forums/topic/cornerstone-update-to-be-compatible-with-php-7-2/

Blockquote
FILE: /home/celeb419/public_html/keianienterprises.com/wp-content/plugins/cornerstone/includes/utility/jsqueeze.php


FOUND 3 ERRORS AFFECTING 3 LINES

387 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
465 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
480 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0

And in addition, I am seeing these errors.

Blockquote
FILE: /home/celeb419/public_html/keianienterprises.com/wp-content/themes/x/woocommerce/single-product/related.php


FOUND 1 ERROR AFFECTING 1 LINE

26 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4

FILE: /home/celeb419/public_html/keianienterprises.com/wp-content/themes/x/woocommerce/single-product/up-sells.php

FOUND 1 ERROR AFFECTING 1 LINE

26 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4

FILE: /home/celeb419/public_html/keianienterprises.com/wp-content/themes/x/woocommerce/cart/cross-sells.php

FOUND 1 ERROR AFFECTING 1 LINE

26 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4

Lastly, In a separate thread, I inquired about Jquery migrate errors that still appears within my rev sliders (default youtube video) from time to time. In attempting to complete my SEO so that my site can load faster it appears that these files are within wp includes file. How can they be removed?

Code:
JQMIGRATE: Migrate is installed, version 1.4.1
(index):133 Uncaught SyntaxError: Unexpected token <
(index):718 Uncaught SyntaxError: Unexpected token <
(index):739 Uncaught ReferenceError: Invalid left-hand side in assignment
(index):745 Uncaught SyntaxError: Unexpected token <
youtubebg.jpg:1 GET https://www.keianienterprises.com/wp-content/uploads/revslider/youtubehero/youtubebg.jpg 404 ()
VM901:1 i
VM901:1 ak
util.js:222 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys


Hi there,

The php 7 and Cache are 2 different matters. Would you please first avoid using any cache plugin to see why you are getting a PHP error on version 7?

Regarding the PHP 7.0 I wonder if you use the PHP Compatibility Checker plugin? If that is the case please kindly read this article:

Thank you.

I resolved the caching issue somewhat, but still working out a few kinks. In reference to cornerstone is it PHP 7.0? If, not can it be upgraded on my site? I’m using the Siteground optimizer and it does a PHP compatibility test on the website vs. their software recommendation.

The following plugins/themes are not compatible with PHP 7.0.

Cornerstone See Errors: Some items within cornerstone have depreciated and are using PHP 5.3, etc.

As for the slider errors I ran across a few threads here that sight the same problem. Can you please provide a solution.?

Hi there,

Their compatibility test doesn’t really test if it’s compatible, it only checks the existence of string and version and decide if it’s compatible. You should ignore that error as it only checks the presence of /e string.

Cornerstone See Errors: Some items within cornerstone have depreciated and are using PHP 5.3, etc.

Could you provide more details about this error? Because from what you provided, there are no cornerstone errors relating to deprecated issues. What I can see are errors pointing to woocommerce templates.

I’d like to check the errors originating from your Woocommerce templates, please provide your admin and FTP login credentials in a secure note.

And you can’t remove jQuery Migrate, it’s part of Wordpress. What you need is to host your site’s asset files from a CDN to improve its loading speed. Plus, those other errors are from these

<meta name="twitter:card" content="summary_large_image" /><meta name="p:domain_verify" content="6bc5f8d6e7ed4068b8e406fe5cf25760" /><meta name="msvalidate.01" content="9365FF5567A538FD8A56CF0A04A64FA8" /><meta name="google-site-verification" content="kr6qVW7oFLtW4GpYdRyj5qN5h2rW5JY9SJ2gGKHgn48" /><link href="https://plus.google.com/+Keianienterprises1" rel="publisher" /><title>Shop At KEI</title><meta name="description" content="Keiani Enterprises, full service agency, helps brands flourish by providing online marketing services, web design via the WordPress platform, models & talent, and more."><meta name=keywords content=shop Social media marketing, social media, marketing, SEO, content marketing, press release, one sheet, branding, marketing blog, social media agency in New Orleans /><meta name=ā€geo.placenameā€ content=ā€New Orleans, Louisianaā€œ><meta name=ā€geo.regionā€ content=ā€ISO-3166-2ā€œ><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="icon" href="https://keianienterprises.com/wp-content/uploads/2014/07/Celebrity-Scope-W-e1443927269609.jpg/" type="image/x-icon"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><link rel="dns-prefetch" href="//youtube.com/embed/8dTzy_N0Pn4"> <script><a href="https://www.keianienterprises.com">home</a>

<a href="https://keianienterprises.com/about-us/">about us</a>

<a href="https://keianienterprises.com/services/">services</a>

<a href="https://keianienterprises.com/pricing/">pricing</a>

<a href="https://keianienterprises.com/faq/">faq</a>

<a href="https://keianienterprises.com/news/">news</a>

<a href="https://keianienterprises.com/contact/">contact</a></script> 

Which you said from your another thread that it’s part of your SEO optimization.

Thanks.

Hi, Rad!

Please log into the wp admin to see the cornerstone and woo commerce errors. Scroll down to the bottom left and mouse over the SG Optimizer and select PHP config and try to check the PHP 7.0 compatibility. It will show the aforementioned errors for cornerstone and woo commerce. I have provided all necessary login credentials via a secure note. How do I host all of my sites assets on a CDN? I’m currently using CloudFlare. Any recommended settings of suggestions?

In addition, I still need help resolving the slide errors that are in the screenshot above. They still occur from time to time. I am using the default youtube video and name for the first slider. If I change the name will that help and also will the slider still work properly?

Hi there,

They aren’t actual errors, it’s just analysis result from their tool. Example, it says using /e in preg_replace() is deprecated and you shouldn’t use that. But there is no such code in our cornerstone, especially in the file jsqueeze.php. That tools from them don’t actually check the presence of /e, it checks the presence of letter e, so if the code contains /hello/, /embark/, the tool will consider it as an error without actually testing it if it’s actually an error.

Because the actual error will put your site down, and you’ll see a blank site.

As for the woocommerce template, it’s not related to /e so it can be changed/fixed. Though I checked and it’s just okay. It’s just a warning and not an error, but your tool reported it as an error. I could change that if you prefer, but the FTP login credentials are incorrect.

And about the slider, I can’t see or reproduce that issue on my end since you started this thread. Maybe it’s just your browser cache? Been testing it and I can’t really see it, though yes, it’s on your screenshot. Please try another browser.

Thanks!

Hi. Rad!

If nothing on the website is causing issues in terms of Cornerstone and woo commerce then I won’t worry about it for now or use Siteground’s dynamic cache Php testing tool. I will use a browser other than chrome to see it the youtube error continues. Thanks.

Hi there,

Sure, and please let us know if there is any issue with cornerstone :slight_smile:

Thanks!

1 Like