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

[SOLVED] preg_replace is null ---
(1 viewing) (1) Guest
Userguide, Report bugs, New Ideas...

TOPIC: [SOLVED] preg_replace is null ---

Re: preg_replace is null --- 10 years, 7 months ago #12559

Hi,

Having the same issue with SJ Company...
Made the change suggested here with no success.

Posted a ticket but no reply...

What can I do to get an answer from you guys?
Are you just considering that I'm not worth replying?

Should be renewing my membership soon, but I'm wondering if I really can....

Cheers

Phil
Last Edit: 10 years, 7 months ago by phil91.
The topic has been locked.

Re: preg_replace is null --- 10 years, 7 months ago #12563

  • SA Thuy
The topic has been locked.

Re: preg_replace is null --- 10 years, 7 months ago #12594

Have responded to your message...Please check my response.
Thx

Philippe
The topic has been locked.

Re: preg_replace is null --- 10 years, 6 months ago #12626

Hi Philippe LEVI,

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

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


replace all:

$body1 = preg_replace('@<form\s[^>]*name="adminForm"[^>]*>([\w|\W]*)</form>@msu', $buffer, $body);


Thanks!
The topic has been locked.

Re: preg_replace is null --- 10 years, 6 months ago #12635

As I indicated in the ticket, I have already tried this and it still doesn't change...
You can see it if you login on my site. Have whitelisted your IP address.

Did some additional code checking:

$body and $buffer both display correctly
What does not work is the preg_replace line which returns apparently nothing in $body1.
I am using SJ Company...Can the syntax be different for SJ_Company? Not good enough with regular expressions....

Thanks

Phil
Last Edit: 10 years, 6 months ago by phil91.
The topic has been locked.

Re: preg_replace is null --- 10 years, 6 months ago #12638

Hi Philippe LEVI,

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

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


relace

$body1 = preg_replace('@<form\s[^>]*name="adminForm"[^>]*>([\w|\W]*)</form>@msu', $buffer, $body);


you have to edit 2 lines: at lines 114 and 118 in "your_site\plugins\system\yt\yt.php"

Thanks !
The topic has been locked.
Time to create page: 0.22 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