-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Connection to filemaker #1
Comments
Can you confirm that you have the fm-api directory in vendor/andrewmile? Also try running a composer install. |
Hi, Now i'm getting empty array as shown below Illuminate\Database\Eloquent\Collection Object ) Can You help me to break this confusion... and to sorted out this thing.... |
Can you give me a snippet of what type of query you are running? In addition, what version of FileMaker server are you running? |
Hi, database.php .... 'default' => env('DB_CONNECTION', 'filemaker'), ].env DB_HOST=host Task.php |
Hi, |
I've taken some time to look at this and I think there is an issue with the all() method. I am working on fixing that functionality but in the meantime have you tried running any other queries? If you run a find() or where() query you should be able to confirm that your database connection is working correctly. |
Hi, |
A quick fix is to add the
However, this fm-api really needs to be updated. It can't run in PHP 7 since it uses old PHP syntax like same name as class constructors. Also it needs to have proper namespacing to avoid this kind of patching. I tried to fix it myself but it is very long and I would rather use a more recent version of FileMaker for PHP API. |
I agree with you! |
The API version included in the fm-api package is for server 13. I have not yet done anything on server 14 with this project. If you are on server 14 you can drop the updated API version in instead. I included the server 13 version as a convenience but I don't have a way currently to swap between versions. |
No changes in the PHP API for FileMaker 14. |
Okay, right now I don't have access to server 14 to upgrade the api version. If someone wants to make a PR to fm-api I'll merge if there are no breaking changes. |
If this is for server 14 it is identical to the server 13 version. |
Yes, as I said. They don't have changed nothing. Just downloaded from one of mine FileMaker Server 14. |
I see. I misunderstood you. In that case we can't really support PHP 7 until FM updates their API. |
Yes, I agree... This API is ancient. They don't have changed nothing since 11 version (they added some function for container fields in 12, but all the rest is the same). |
Mmm can we make our own version of FM API then? I checked quickly the code and the problem is mostly PHP 4 style constructors ( I could try this and make a pull request once it is tested. |
Also, there are no visibility keyword before methods ( |
I made a modernized version of FMAPI. I made a pull request for it on andrewmile/FMAPI. |
Thank you for looking into that. I'll take a look and will merge if everything still works well. |
Hi - just curious if there is any chance of merging cariboufute's pull request for andrewmile/FMAPI to make FMLaravel compatible with php 7? |
Hi @ballet-mecanique , unfortunately I no longer have access to a FileMaker server to test any changes so this repo has not received any updates in quite some time. I wrote FMLaravel while working for a former employer, whom I believe is still using it in production. I have reached out to them to see if they will take over the repo and if not, I will update this project to reflect its current state. |
Hi,
I'm trying to connect Filemaker database, i tired all the steps given
https://github.com/andrewmile/FMLaravel
but it showing me the below error...
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'FileMaker' not found
I'm not getting from where this thing is happening....
Can any one suggest me regarding this issue.... Any Help
The text was updated successfully, but these errors were encountered: