This topic is locked

Getting error while trying to change Project Logo

9/27/2024 5:26:08 PM
PHPRunner General questions
A
asawyer13 authorDevClub member

I am using this code in the AfterAppInit()

Labels.setProjectLogo($_SESSION["orgdesc"]);

It works locally but when I put on my server I get an error. I think it's trying to say Labels isn't defined.

I am running PHP 8.3.11 which could be an issue I guess. I don't know what the latest version of PHP can be run with PHPR 10.9.1.
The oldest version of PHP I have available on this particular server is 8.2.23 and it gives me the same error.

Anybody have any good ideas?

Alan

A
asawyer13 authorDevClub member 9/27/2024

I see where maybe the right syntax is

Yes, the correct syntax is Label::setProjectLogo

Testing now. Manual shows the other code

A
asawyer13 authorDevClub member 9/27/2024

Correct syntax is:

Labels::setProjectLogo

Alan

Sergey Kornilov admin 9/28/2024

Manual shows the correct syntax:
https://xlinesoft.com/phprunner/docs/setprojectlogo.htm

It looks like you were looking into ASPRunner.NET manual instead.