Problem with Hours_Diff Field Type [Solved]

Post Reply
User avatar
elviseras
Investor
Investor
Posts: 578
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

Problem with Hours_Diff Field Type [Solved]

Post by elviseras »

Hi, We have the following error when trying RK to show the calculation of time difference ...
Database Error: 1449 - The user specified as a definer ('root'@'127.0.0.1') does not exist
Query: select rukovoditel_hours_diff(e.field_540,e.field_541,'','','') as field_542 from app_entity_23 e where e.id=8
Page: /index.php?module=items/&action=save&id=8
I have already deleted 'start date' , 'end date' and 'hours difference' fields and I have created them again, but the error persists....

The funny thing is that this problem is only in the production server instance (Migrate from local wamp server). If I try this on the original test server instance there is no problem ... Can it be a permissions problem when migrating to the server in production?

Regards
elviseras
Last edited by elviseras on 18 Oct 2019, 23:32, edited 1 time in total.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Hours_Diff Field Type

Post by support »

Looks like something wrong with db.
Open phpMyAdmin and goto Routines where you can find function rukovoditel_hours_diff
Remove it.
Then go to fields configuration and edit field with type Hours Diff. This function will create automatically again and should works ok I think.
Attachments
screenshot-localhost-2019.10.17-19_21_31.png
User avatar
elviseras
Investor
Investor
Posts: 578
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

Re: Problem with Hours_Diff Field Type [Solved]

Post by elviseras »

Thanks!! It works :D :D
Post Reply