Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

RenderAsset('Panel') returning NULL

2»

Answers

  • @sddp I would check the file permissions on your modules and views/modules folder in each of your application folders (vanilla, dashboard, and conversations).

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • @hgtonight I just gave them full (777) permissions too all files it doesn't work... I seriously have no idea why isn't the Panel showing at all.

  • x00x00 MVP
    edited July 2013

    var_dump() only return the result of the method. it is not going to return the what is echo'd

    in other words function SomeFunction(){ echo "hi";} will return NULL.

    I would disable, style in your browser and see if it comes up.

    Lesson learnt: to do not modify core files unless you intend to maintain a fork.

    It pointless people guessing what has happened to the core.

    grep is your friend.

  • x00x00 MVP
    edited July 2013

    @sddp said:
    hgtonight I just gave them full (777) permissions too all files it doesn't work... I seriously have no idea why isn't the Panel showing at all.

    NO, NO, NO seriously I bang my head against the wall, every time people think this is a solution to all problems.

    Think about it why would need write permissions of a file that is only interpreted, and why would you need to give write permissions to EVERYONE!?! Common sense, and as a webmaster you have a responsibility to properly understand file management.

    People need to get out of their head chmod 0777 in a proper set up there is pretty much ZERO use for it at all. It is only cheap webhost that encourage this becuase they are too lazy to give you proper file management.

    But you are never supposed expose any old files anyway.

    Just doing something becuase you think you aught to without understanding why, is called Cargo Cult Programming. Google it.

    grep is your friend.

  • @vrijvlinder Tried it and it is still not showing up. Thank you :)

    @x00 Hahahah I know what var_dump() does and since the call for $this->RenderAsset('Panel') is returning nothing, the function var_dump helps me display whatever it is returning. I am not even checking the browser rendering results, it's not a style issue at all, the thing is that it's not giving out the Panel at all. The recommendation regarding permissions to the files is just a lazy (let's see what's up) try of an issue that has been not solved for 45 days. Read the full discussion, all that has been already explained. Thank you anyways, let's see if someone else knows what's up.

    (I'm ready to give up)

  • x00x00 MVP
    edited July 2013

    Hahahah I know what var_dump() does and since the call for $this->RenderAsset('Panel') is returning nothing, the function var_dump helps me display whatever it is returning

    RenderAssest returns nothing. The clue is the word Render, it it job is not to return but to render. You can see here it returns nothing.

       public function RenderAsset($AssetName) {
          $Asset = $this->GetAsset($AssetName);
    
          $this->EventArguments['AssetName'] = $AssetName;
          $this->FireEvent('BeforeRenderAsset');
    
          //$LengthBefore = ob_get_length();
    
          if(is_string($Asset)) {
             echo $Asset;
          } else {
             $Asset->AssetName = $AssetName;
             $Asset->Render();
          }
    
          $this->FireEvent('AfterRenderAsset');
       }
    

    You need to restore your version of Vanilla, so you don't have a tainted core.

    The recommendation regarding permissions to the files is just a lazy

    Well it takes the same effort to set the permissions differently, the lazy part is not taking the time to understand. If a file is not needed to be written to it does not require write permissions.

    However if you believe you know these things, I will treat this in good faith, and then you should be able to figure it out yourself.

    grep is your friend.

  • @x00 Thank you, I am going to check on that function.

    Okay after trying all the lazy solutions, I removed the cache files (once again), created another admin user(GF recommended)... and Problem solved. I have no idea what it could have been, the thing is that it's pretty working now.

    Thank you all for all your help, I do really appreciate it.

  • well then that sound like the problem was permissions ? admin permissions ?

    Good thing you did not wait 45 more days lol , so the solution to this conundrum was to make a second admin account.....

Sign In or Register to comment.