Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED]Error occurred because preg_replace is null
(1 viewing) (1) Guest
User guides, update and bug fixes
  • Page:
  • 1

TOPIC: [SOLVED]Error occurred because preg_replace is null

[SOLVED]Error occurred because preg_replace is null 10 years, 1 month ago #17246

Hi,

When trying to open the template in template manager i get the following error
"Error occurred because preg_replace is null"

Please help
The topic has been locked.
The following user(s) said Thank You: Olga Plutaewa

Re: Error occurred because preg_replace is null 10 years, 1 month ago #17251

Sorry I have found the solution:

Please go to "your_site\plugins\system\yt\yt.php", finding:

$body1= preg_replace('@<form\s[^>]*name="adminForm"[^>]*>?.*?</form>@siu', $buffer, $body);

replace:

$body1 = preg_replace('@<form\s[^>]*name="adminForm"[^>]*>([\w|\W]*)</form>@msu', $buffer, $body);
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.19 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes