Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

theblack68's avatar

Work in Local but not on DigitalOcean

Hi to everyone. A very strange thing happens to me. I have develope a project in local (Homestad and Vagrant). When I test it all work right! I have transfer all file on a Droplet on DigitalOcean ...there are identical! In detail when I try to add a records I receive an error message (Trying to get property 'cliente' of non-object). But on the local Server work and on Digital Ocean No!!! Someone have same suggest?

Thanks a lot ;)

0 likes
3 replies
Cronix's avatar

It sounds like you are trying to eagerload a relationship somewhere, but you don't have the data required by the relationship in the db yet.

You can confirm this by backing up the database on your dev box (where it's working). Then delete the database completely and rerun your migrations to build it back up. Does your app crash just like your production box?

theblack68's avatar

Hi Cronix ...that's right!!! I have Export a new backup and load ...it's Work GREAT ;)

Cronix's avatar
Cronix
Best Answer
Level 67

@theblack68 Good to hear it was something easy to fix! Please mark the thread as solved.

1 like

Please or to participate in this conversation.