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, 5 months ago #12678

OK...
Let me know for the preg_replace issue...
Thx

Philippe
The topic has been locked.

Re: preg_replace is null --- 10 years, 5 months ago #12679

Hi Philippe LEVI,

Could you please send us your live URl and if possible, the screenshots so that we could
have closer look on the issue.

Thanks!
The topic has been locked.

Re: preg_replace is null --- 10 years, 5 months ago #12682

This happens when logging in in the backend and going to Template Manager and clicking on SJ Company. You have already the login/pw data from the ticket system...Frontend is just fine

See ticket comment..

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

Re: preg_replace is null --- 10 years, 5 months ago #12683

Hi Philippe LEVI,

I see that your backend work fine. I went to Template Manager and clicking on SJ Company and i can edit it normally.

www.clubchevry2.com/nouveau_site/administrator/index.php?option=com_templates&view=style&layout=edit&id=121

Please clear the cache of your browser again!

Thanks!
Last Edit: 10 years, 5 months ago by .
The topic has been locked.

Re: preg_replace is null --- 10 years, 5 months ago #12689

<b>Now, THIS is really weird!</b>
If I use Your account and English as default language, it works!!!
If I use MY account and French language it does not!
Would you be able to find out if I change your default language to French?

This means that the regex used only works for EN language, right?

If it can help, Template edit in local language backend was possible with YT plugin BEFORE 2.1.9...Maybe it would be worth looking at older versions you had around those famous 2 preg_replace lines...

Here's what I found using the existing 2.1.6 plugin from the download area

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

Definitely a difference, but I don't know enough about regexp...

UNLESS what is required is a LOCAL French version of the plugin language files...Can try to do this...

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

Re: preg_replace is null --- 10 years, 5 months ago #12713

OK,

Got what the problem is: I started creating a French fr-FR.tpl.SJ_Company.ini and fr-FR.tpl.sj_Company.sys.ini to have the template details in French...

Removing these files from /languages brings the template back.

Now have to check whether the files I started creating were using UTF-8 encoding or not...

Will keep you posted.

Philippe
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