×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: PHP Error Messages

PHP Error Messages 13 years 8 months ago #11785

  • Don Cranford
  • Don Cranford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I'm using PHP5.3.3 and I am seeing several php error messages. Most of them have to do with using the split function, which is deprecated in PHP5.3

On the Settings screen, I get:

Notice: Trying to get property of non-object in /.../administrator/components/com_comment/library/JOSC_config.php on line 39


On the Settings [Security] screen, I get:

Deprecated: Function split() is deprecated in /.../administrator/components/com_comment/views/settings/tmpl/security.php on line 61

Deprecated: Function split() is deprecated in /.../administrator/components/com_comment/views/settings/tmpl/security.php on line 122

Deprecated: Function split() is deprecated in /.../administrator/components/com_comment/views/settings/tmpl/security.php on line 155

On the Settings [Posting] Screen, I get:

Deprecated: Function split() is deprecated in /.../administrator/components/com_comment/views/settings/tmpl/posting.php on line 128


On the Manage Comments screen, I get:

Notice: Undefined variable: renderedcomments in /.../administrator/components/com_comment/views/comments/view.html.php on line 109

Note: I don't have any comments yet. I just installed the component.

Thanks,
Don

PHP Error Messages 13 years 8 months ago #11786

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Don,
Which version compojoomComment do you use?
My dev server is running php 5.3.1 and I don't see those notices.

Are you using joomlacomment or compojoomComment 4.1.9 ?

Cheers,
Daniel

PHP Error Messages 13 years 8 months ago #11788

  • Don Cranford
  • Don Cranford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I think/thought that I was using the very latest version. I just downloaded it and installed it. But it looks like it is 4.1.8 build149, which is the only one I see in the downloads area.

PHP Error Messages 13 years 8 months ago #11789

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Don,
Sorry, my bad! I meant 4.1.8 and not not 9 - there is no 9 at the moment :D

Well that is crazy. The big question for me is - why I don't see those notices?
What is the value for error reporting in your php.ini ?

mine is
error_reporting = E_ALL | E_NOTICE | E_DEPRECATED 

And I see notices for other stuff, but not for the things you write.

I'll write your report to the bug tracker and we will fix the problems for the next version if I manage to confirm them.

PHP Error Messages 13 years 8 months ago #11790

  • Don Cranford
  • Don Cranford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
My error reporting is set to 30719, which is the PHP5.3 equivalent to E_ALL

I assume the split() function would be easy to confirm. The php.net says that it has been deprecated as of 5.3.0

I'm not sure why the other errors wouldn't be showing up for you but would show up for me. I do have display_errors set to "on" on my dev machine so that I seem them on my page.

PHP Error Messages 13 years 8 months ago #11791

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, I agree with the split! I read it today in the docs on php.net . Once I get the notices to show on my machine I'll also fix them.

Cheers,
Daniel

P.S. I'm sure that you know this - this are just notices and they should not prevent the component from working. However in the frontend if we generate a notice it will brake the ajax functionality. So I advise you to turn the error reporting down - just in case!

P.S.1 A big thank you for the report! All those will be fixed - I don't like notices in my code, but as I said my dev environment is not showing them...

PHP Error Messages 13 years 8 months ago #11792

  • Don Cranford
  • Don Cranford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thanks. As far as I can tell, the extension is working fine. I don't have the display_errors turned on for my production server, so the client will probably never see those. I guess I'm like you and don't like to see that there are potential errors and I thought you'd want to know so they can be looked into.
Thanks
Don

PHP Error Messages 13 years 8 months ago #11798

  • Don Cranford
  • Don Cranford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
As I continue to use it, I'm getting these error messages whenever I have UBB code support turned on. This goes away if I turn the UBB Code Support off and the error messages only show up on pages where I have a comment.

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 567

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 1210

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 1221

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 1264

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 1281

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser_bbcode.class.php on line 1535

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser.class.php on line 285

Deprecated: Assigning the return value of new by reference is deprecated in /.../components/com_comment/classes/ubbcode/stringparser.class.php on line 982

I'm running this right now on my Mac using PHP 5.3.3 with MySQL 5.1.48 and Apache 2.2.15

PHP Error Messages 13 years 8 months ago #11799

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I think that I'll have to be fire myself....

Really sorry about those! My localhost refuses to show me them no matter what settings I enter debug...

I have the feeling that a php script is changing the values of the php.ini...
  • Page:
  • 1
Time to create page: 0.118 seconds