Home Forums RaidPlanner Discussions Bug reports Creating default object from empty value in

This topic contains 8 replies, has 4 voices, and was last updated by  Melissa 1 year, 5 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1550

    mariame
    Member

    Hi there,

    Firstly, I just want to say…THANK YOU FOR RAID PLANNER!!! It’s absolutely wonderful and has been very useful for our guild. 🙂

    I recently updated Raidplanner, and I’m kind of a PHP newb and I’m having difficulty fixing this new error everyone is getting when they click “Sign Up” in regards to the code about the role:

    Warning: Creating default object from empty value in /usr/www/nightshift/public/NightShift/components/com_raidplanner/views/event/tmpl/default.php on line 303

    On like 303 the code in the php file reads:
    $this->selfstatus->role_id=$role->role_id;

    I’ve been trying to figure out a way to fix it for the last few hours but I just keep getting frustrated because I can’t figure it out!!!

    #1551

    mariame
    Member

    Funny thing is, everything is working fine and it’s just an annoying message. Is there something I can do in the code to make it just ignore the warning?

    #1552

    mariame
    Member

    Hehe nevermind….

    I just added:
    error_reporting(0);

    As everything seems to be working fine, good enough for me =D

    Yay, the error message is gone!!

    • This reply was modified 3 years, 10 months ago by  mariame.
    #1744

    Melissa
    Member

    I’m having this same issue.

    Warning: Creating default object from empty value in {root}/public_html/components/com_raidplanner/views/event/tmpl/default.php on line 303

    #1746

    Marvellius
    Member

    @Melissa:
    try to add
    php_value error_reporting 0

    to your .htaccess file (most likely {root}/public_html/.htaccess

    That should remove the PHP warning message.

    /Marv

    #1753

    Melissa
    Member

    I tried that. No luck. 🙁

    Besides, instead of trying to tell my site to ignore error reporting, wouldn’t it be better to fix the errors?

    • This reply was modified 3 years ago by  Melissa.
    #1764

    Anonymous

    Echange in \components\com_raidplanner\views\event\tmpl\default.php

    on line 305 this: (intval($this->selfstatus->role_id)==0) {
    into this: (intval($this->selfstatus->role_id)==1) {

    <?php foreach ($this->roles as $role) {
    if (intval($this->selfstatus->role_id)==1) {
    $this->selfstatus->role_id=$role->role_id;

    So no error message comes up! }

    #1765

    Melissa
    Member

    Finally, the error is gone!!! Thanks, qarrer!

    #1823

    Melissa
    Member

    Any news on this being fixed? I have to hack code every time I update Raid Planner. 🙁

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

 

Comments are closed.