Menu

Error while migrating an extension from v2.7 to v3.2

2025-10-09
2025-10-09
  • Kevin Joubert

    Kevin Joubert - 2025-10-09

    Greetings, I am trying to migrate from v2.7 LTS to v3.2 but I am getting the following error when my extension is processed.:

    ***Fatal error: Uncaught Error: Class "PhysicalDevice" not found in
    C:\xampp\htdocs\medeq\env-production\medeq-3-test\model.medeq-3-test.php:430

    My custom classes all have PhysicalDevice as their parent class.

    I have tried adding a clone of the PhysicalDevice class to my extension with delta="defineifnotexists" but to no avail. What am I doing wrong?

    Thanks, Kevin

     
  • Stephen Abello

    Stephen Abello - 2025-10-09

    Hi Kevin,

    Do you have any dependencies set in your module.medeq-3-test.php ?
    PhysicalDevice is defined in itop-config-mgmt module, in order to be sure your extension is loaded after this module, your dependencies should be similar to this:

            'dependencies' => array(
                'itop-config-mgmt/3.2.0'
            ),
    

    I hope this helps,
    Stephen

     
  • Kevin Joubert

    Kevin Joubert - 2025-10-09

    Hi Stephen, thanks for the quick reply. I did not have any dependencies set in my module. I added the one you suggested and it went straight though, but now it's hanging with the class Ticket not found. Which module is that defined in? I have tried adding 'itop-tickets/3.2.1' and 'itop-request-mgmt/3.2.1', but it still halts.

     
  • Stephen Abello

    Stephen Abello - 2025-10-09

    Indeed it should be itop-tickets.
    With a dependecy as follows, it should work, unless there's another underlying issue

            'dependencies' => array(
                'itop-config-mgmt/3.2.1',
                'itop-tickets/3.2.1'
            ),
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.