CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

How to Fix Page Preview preg_match_all Warning Enfold Theme

Enfold, Themes, WordPress

Beginning around Enfold v4.5.1 we noticed that when previewing the changes made to a page or post we would receive the following PHP warning message.

 

Warning: preg_match_all(): Compilation failed: unknown property name after \P or \p at offset 6440 in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-parser.class.php on line 607

 

Our brief research into this issue showed that it is related to some sort of conflict with another plugin. However, it isn’t a pressing issue as it is only a warning. But it is still annoying which is why we have come up with a quick patch to mute these warning messages.

 

Turn off PHP Error Reporting

One of the support moderators on the Enfold theme support forums suggested users simply turn off PHP error reporting by inserting the following tag into your child-theme’s functions.php: error_reporting(0);

Not an ideal nor satisfactory solution in our opinion, but it will work. Another possibility is to mute warning messages only for the offending line of code. Which is what we prefer.

 

Mute Warning Messages

The following is a hard code into the main Enfold theme. This means that the patch will be overwritten upon the next update. But it appears they (Kriesi) won’t be fixing this issue anytime soon based upon the replies we received on our support request post.

A quick patch to “mute” error messages on the “preg_match_all” function would be to add an “@” to the front of line 607 within shortcode-parse.class.php

We have tested it and see that our shortcodes are still functioning. No more error notices upon preview and it doesn’t get reported in the server’s error_log

 

FILE:

/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-parser.class.php

 

LINE 607:

@preg_match_all( “/” . ShortcodeHelper::get_fake_pattern( false, $shortcodes ) . “/s”, $text, $sc_found, PREG_OFFSET_CAPTURE );

 

We will try again to reach out (this time directly) to the developers at Kriesi.at to see about implementing a better, more permanent, solution to this minor yet annoying issue. In the meantime this patch will have to suffice on the accounts that frequently access the preview feature.

 

If you found this article helpful, please take a moment to like us on Facebook, share this on your social media. Let us know if you have any questions that we may be able to assist you with.

 

April 4, 2019
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/04/enfold.jpg 512 512 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2019-04-04 18:05:272019-07-17 18:00:38How to Fix Page Preview preg_match_all Warning Enfold Theme
Search Search

CONNECT WITH US

This field is for validation purposes and should be left unchanged.
Engagement*

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: How to Remove Admin Bar Editor Type from Enfold Theme Link to: How to Remove Admin Bar Editor Type from Enfold Theme How to Remove Admin Bar Editor Type from Enfold ThemeEnfold WordPress Theme Logo Link to: Disable access to XMLRPC in WordPress Link to: Disable access to XMLRPC in WordPress Disable XML-RPC on WordPress WebsiteDisable access to XMLRPC in WordPress
Scroll to top Scroll to top Scroll to top