Menu

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

2025-10-09
2025-11-03
  • 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'
            ),
    
     
  • Kevin Joubert

    Kevin Joubert - 2025-11-03

    @sabello Hi Stephen, just wanted to let you know I found out what I was doing wrong. I selected Service management as a dependency but the database was set up for Service Management for Providers. So simple, but it took me a while to get it. But in the process I learned a lot more about how iTop works under the skin, so not wasted effort. But you pointed me in the right direction. Thank you for your help. regards, Kevin Joubert.

     

Log in to post a comment.