This topic is locked
[SOLVED]

SuggestionBox

7/23/2025 3:48:29 AM
PHPRunner General questions
Tandy author

Just downloaded the SuggestionBox. Added it to V11 PHPrunner. I made a new test database on local server. No code edits. Just built the page and get this:

Fatal error: Uncaught Error: Call to undefined function GetGlobalData() in C:\runnerapps\SuggestionBox\usercode\initapp.php:17 Stack trace: #0 C:\runnerapps\SuggestionBox\include\dbcommon.php(69): require_once() #1 C:\runnerapps\SuggestionBox\sgb_suggestions_list.php(9): require_once('C:\\runnerapps\\S...') #2 {main} thrown in C:\runnerapps\SuggestionBox\usercode\initapp.php on line 17

Anyone else on a fresh install?

ChatGPT 7/23/2025

The error message you're encountering indicates that the function GetGlobalData() is not defined in your PHPRunner installation. This function is typically part of the core PHPRunner framework, and if it's not found, it could mean a couple of things:

  1. Missing or Corrupt Files: Ensure that all the necessary files for PHPRunner and the SuggestionBox project are present and not corrupted. Sometimes, files may not be copied correctly.


  2. Version Compatibility: Verify that the SuggestionBox you downloaded is compatible with PHPRunner V11. If it was designed for a different version of PHPRunner, you may encounter compatibility issues.


  3. Correct Initialization: Ensure that the initapp.php file is correctly set up to include the main PHPRunner files. The initialization process may require certain core files to be included before it can access functions like GetGlobalData().



Here are some steps you can take to troubleshoot the issue:

  • Re-download the SuggestionBox: There might have been an issue during the download. Make sure you have the latest version and that all files are intact.


  • Check PHPRunner Documentation: Review the PHPRunner documentation or any README files that came with the SuggestionBox for any specific setup instructions.


  • Contact Support: If the problem persists, consider reaching out to PHPRunner support or checking their forums. Other users may have encountered similar issues, and the support team may have a specific solution.


  • Check for Updates: Ensure your PHPRunner installation is up to date. Sometimes, updates fix bugs or compatibility issues.



If after checking these points you still face issues, please provide any additional context or steps you've taken, and I'll do my best to assist you further!

Tandy author 7/23/2025

PHPRunner Version 11.0 Build 43602
Just downloaded the SuggestionBox so that is new.
Did no changes to any files.
SuggestionBox say 10.91, so must not be compatible with v11..

Tandy author 7/24/2025

Thanks to the Admin. He got it working..