Function ereg_replace() is deprecated

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Briefcase
New Member
New Member
Posts: 3
Joined: Wed May 15, 2013 8:40 am

Function ereg_replace() is deprecated

Post by Briefcase »

hi,

i did an upgrade to version 1.11.6, and now i'm seeing the following error:

Function ereg_replace() is deprecated public_html/plugins/function.stylesheet.php on line 104

I've been searching and found the solution reg_replace but can't get the syntax right.

thanks in advance.
uniqu3

Re: Function ereg_replace() is deprecated

Post by uniqu3 »

You should not use stylesheet function at all, it has been replaced with cms_stylesheet since 1.9.x series.
Change in your template from {stylesheet} to {cms_stylesheet} possibly you will have to adjust paths (for example background: url([[root_url]]/path/to/image);) in your Stylesheet for background images as now stylesheets are saved in /tmp/cache folder
Briefcase
New Member
New Member
Posts: 3
Joined: Wed May 15, 2013 8:40 am

Re: Function ereg_replace() is deprecated

Post by Briefcase »

thanks for your reply.

i'm a complete noob with cmsms to be honest...

I found that you can install with the theme manager but there is no theme manager in my admin section, nor it there a "layout"-option (should be there according to the docs)

It looks like it's gone. Where to adjust the template?
Briefcase
New Member
New Member
Posts: 3
Joined: Wed May 15, 2013 8:40 am

Re: Function ereg_replace() is deprecated

Post by Briefcase »

Briefcase wrote:hi,

i did an upgrade to version 1.11.6, and now i'm seeing the following error:

Function ereg_replace() is deprecated public_html/plugins/function.stylesheet.php on line 104

I've been searching and found the solution reg_replace but can't get the syntax right.

thanks in advance.
where can i adjust the template? I can't find the "layout" button in the admin section whitch is mentioned in the documentation.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Function ereg_replace() is deprecated

Post by Dr.CSS »

The default admin menu goes, CMS, Content, Layout, etc.etc. under Layout is templates, style sheets, menu manager, theme managter, if you don't see the top Layout menu item you are not set up as full admin of site or some such...
Locked

Return to “[locked] Installation, Setup and Upgrade”