This topic is locked

project build Number phprunner 11.1

8/5/2025 8:04:11 AM
PHPRunner General questions
ffrinai author

I imported a project from phprunner 10.91 to 11.1, now the $projectBuildNumber variable is no longer displayed;
10.91

img alt

11.1

img alt

thanks
Fabio

ChatGPT 8/5/2025

It sounds like you're experiencing an issue with the $projectBuildNumber variable not displaying after importing your project from PHPRunner 10.91 to 11.1. This could be due to changes in the way PHPRunner handles or defines project variables between versions.

Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. Check Project Settings: After importing the project, go through the project settings to see if there are any new options or configurations related to project variables. Make sure that $projectBuildNumber is still a valid variable in the new version.


  2. Review Documentation: Check the PHPRunner documentation for version 11.1 to see if there are any notes on changes to project variables or if $projectBuildNumber has been deprecated or replaced with a different variable.


  3. Re-add Variable: If the variable is not present, try manually adding it back into your project. You can do this by creating a new custom variable and assigning it the appropriate value.


  4. Check Template Files: If you have custom templates or layouts, ensure that they are compatible with the new version. Sometimes, custom code can interfere with how variables are rendered.


  5. Contact Support: If the issue persists and you can't find a solution, consider reaching out to PHPRunner support or checking the user forums. Other users may have encountered the same issue and can offer insights or solutions.


  6. Comparison of Versions: Sometimes reviewing the release notes or change logs between the two versions can provide clues on what might have changed regarding project variables.



By following these steps, you should be able to identify why $projectBuildNumber is not displaying in your PHPRunner project after the upgrade and find a solution to restore it.

S
safesurf 8/5/2025

It took me some time but finally found out how to display the PHPRunner build number in the footer.

<?php echo "Version 11.1 Build " . $wizardBuildKey = ProjectSettings::getProjectValue('wizardBuild'); ?>

Sergey Kornilov admin 8/5/2025

The build of PHPRunner software itself can be accessed the way @safesurf suggests.

We no longer store project build number though. My suggestion is to create a new PHP varibale right in your PHP code and increment it when you start working on a new version of the project.