Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View Privacy Policy

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Warnings

Warnings 4 years 8 months ago #2640

Hi Andrea, i just upgraded CP to the latest version in a developement site (made with Joomla 3.8.2 ), to try it with PHP 7 but I receive this warning:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; cpContentElement has a deprecated constructor in ..\administrator\components\com_customproperties\helpers\contentelement.class.php on line 176.
Furthermore in the menu item "Custom Property Layout" for each article found i have this warning:
Notice: Undefined property: stdClass::$created_by in ..\plugins\content\contact\contact.php on line 60
I don't know if there is a link between the two warnings, but in the menu item "Blog Category" with the same articles there is not the second warning.
Hope you can help me
Rita
Attachments:
The administrator has disabled public write access.

Warnings 4 years 8 months ago #2641

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
To state the obvious, since you are using a latter version of PHP, it is expected that some functions / constructs that were perfectly fine in previous versions of PHP are now considered deprecated.
However, since they are still viable functions / constructs, they work just as fine as before.

As a developer, whenever I see those warnings, I know I have to make modifications for the program to continue working with future versions of PHP.

The second notice message is thrown by standard joomla "Content - Contact" plugin. The plugin is looking for a field that is not provided by Custom Properties result items.
The plugin assumes that the field exists instead of checking for its existence before using it.

If you want to mute that error you can disable the Content - Contact Plugin.

(I see what I can do to "please" that plugin in a future version of Custom Properties)

In general, you should configure your hosting to not display 'Deprecated' warning messages, unless you are developing your own extension with consideration to forward compatibility.
Last Edit: 4 years 8 months ago by andrea_4g.
The administrator has disabled public write access.

Warnings 4 years 7 months ago #2663

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
Fixed with the recently released Custom Properties 3.1.28
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.052 seconds