Suite can't find a php-class who exists

Hi,

everytime I execute my script with a entry Point, I get this error message:

Fatal error:  Uncaught Error: Class 'Case' not found in /var/www/html/suitecrm/custom/parsing_salesforce_tables.php:207
Stack trace:
#0 /var/www/html/suitecrm/custom/parsing_salesforce_tables.php(408): import_data('sfrc_Case', Array, 'Case')
#1 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(1020): require_once('/var/www/html/s...')
#2 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(468): SugarController->handleEntryPoint()
#3 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(373): SugarController->process()
#4 /var/www/html/suitecrm/include/MVC/SugarApplication.php(113): SugarController->execute()
#5 /var/www/html/suitecrm/index.php(52): SugarApplication->execute()
#6 {main}
  thrown in /var/www/html/suitecrm/custom/parsing_salesforce_tables.php on line 207

This class exists on my VM like every other class I used before in this script.

$bean_to_load = new $module_class();

This is my line 207

Is there anything I miss?

Thanks for helping,

Neon_Duck

Hello,

As a case is reserved keyword. Here the class name of Cases module is aCase

You can verify it at modules/Cases/Case.php

Instead of “Case”, try using “Cases”.

If that doesn’t work, try “aCase”

1 Like

Thanks for the answer.

So I have to change it from ‘Case’ to ‘aCase’?
And do I need to change the name ‘Case.php’ to ‘aCase.php’?

No file name is correct. Only you have to change is the Class name.

1 Like

It works, thank you. :slight_smile: