Error After Upgrading 2.04 to 2.05 - Strict Standards: var: Deprecated.
3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 16, 2010 (RSS)
Hi
I have the following error after upgrading one of my sites from 2.04 to 2.05:
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /var/www/vhosts/mysite.com/httpdocs/cms/lib/field_class.php on line 14
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /var/www/vhosts/mysite.com/httpdocs/cms/lib/field_class.php on line 15
Can you advise on a fix for this?
I took a look at field_class.php which i think is a new file but was unsure how to proceed
Many thanks in advance for the support and keep up the good work! [;)]
I have the following error after upgrading one of my sites from 2.04 to 2.05:
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /var/www/vhosts/mysite.com/httpdocs/cms/lib/field_class.php on line 14
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /var/www/vhosts/mysite.com/httpdocs/cms/lib/field_class.php on line 15
Can you advise on a fix for this?
I took a look at field_class.php which i think is a new file but was unsure how to proceed
Many thanks in advance for the support and keep up the good work! [;)]
Re: [alissi] Error After Upgrading 2.04 to 2.05 - Strict Standards: var: Deprecated.
By Jason - July 15, 2010
Hi,
It looks like this problem is being caused by the version of the PHP interpreter on your server. Fortunately, there is a nice and easy fix for it.
If you open up cmsAdmin/lib/field_class.php, you'll see a 2 variables being defined near the top of the page. It will look like this:
You need to change it to look like this:
Give that a try. Let me know if you are still running into any problems.
Thanks.
It looks like this problem is being caused by the version of the PHP interpreter on your server. Fortunately, there is a nice and easy fix for it.
If you open up cmsAdmin/lib/field_class.php, you'll see a 2 variables being defined near the top of the page. It will look like this:
// member variables
var $name;
var $fieldSchema;
You need to change it to look like this:
// member variables
public $name;
public $fieldSchema;
Give that a try. Let me know if you are still running into any problems.
Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Error After Upgrading 2.04 to 2.05 - Strict Standards: var: Deprecated.
Hi Jason
The code change resolved the errors [:)]
Many thanks for your help!
The code change resolved the errors [:)]
Many thanks for your help!