Skip to content
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

[ErrorException] Use of undefined constant FT_UID - assumed 'FT_UID' #30

Closed
Reegan01 opened this issue Oct 16, 2017 · 14 comments
Closed

Comments

@Reegan01
Copy link

Hi,

I got this error
[ErrorException] Use of undefined constant FT_UID - assumed 'FT_UID' when I add your provider and alias into config\app.php inside the arrays of providers and aliases . Your document also wrongly indicate to add the provider and alias inside config/imap.php please check the document and change to config/app.php

Thanks for your contribution to the open source world.

@maverickchangithub
Copy link

i had this before , the doc says , put in the imap.php , not config.php. then everything should work

@Webklex
Copy link
Owner

Webklex commented Oct 17, 2017

Hi @Reegan01 ,
thanks for your report. I already updated the README.md. For the otherwise issue please take a look at this older simular issue: #14.

Please let ne know of you are still having this issue. If so please provide the requested informationen from issue #14 .

Best regards

@Reegan01
Copy link
Author

Thanks for your reply,

So, based on your README.md I want to add the provider to config/app.php and alias to config/imap.php correct?

@pan-tom
Copy link

pan-tom commented Oct 20, 2017

I had this error when my hadn't installed php IMAP module in my xammp.

@Reegan01
Copy link
Author

Now working perfect and fast in my online server. Thanks @Webklex for your contribution.

I have a query, Now I can list and view my inbox in my Dashboard. But I also want to compose mail from dashboard. So what I want to use for compose mail ? For compose mail If I use Laravel default SMTP mail option, Is that mail will save automatically in my online mail server(send items folder) ?

@Webklex
Copy link
Owner

Webklex commented Oct 26, 2017

@Reegan01 yes you are right, for sending mail you should consider to use the "native" laravel Mail class. They have a well documentation: https://laravel.com/docs/5.5/mail

@AndreVME
Copy link

I've been struggling with this error for the past 3 hours. I un-installed and re-installed a number of times. Turns out all I had to do is "valet restart" after following the instructions on here.

@Reegan01
Copy link
Author

Reegan01 commented Nov 23, 2017

@AndreVME you must add the provider and alias in config/app.php page. Not in the config/imap.php page.

@allandereal
Copy link

I solved this by installing php-imap module and uncommenting php_imap.dll in php.ini

@aminefilali1
Copy link

I had the same issue and I resolve it by installing PHP IMAP extension :
for Linux: sudo apt-get install phpX.X-imap

@devinhyden
Copy link

@aminefilali1 Thank you. I installed it on development and forgot to in production

@Loafer19
Copy link

Loafer19 commented Aug 30, 2019

php.ini must include the IMAP extension

@tonitch
Copy link

tonitch commented Feb 16, 2023

I'm sorry if I "re-open" a closed issue, I think this is relevent here.

I'm a archlinux user and my distro just stoped supporting php-imap for security resons and I know that when arch does something usually after several month, other distro do kinda the same.

So I was wondering... is there an alternative to make this work ? I don't really know the project too much I'm just looking on the internet for a solution since about an hour and kinda figured this out, I hope this is kinda the right place to go. I'm just trying to install freescout tho.

@Webklex
Copy link
Owner

Webklex commented Mar 1, 2023

Hi @tonitch ,
it depends on the version you are trying to install. The issue used to occur in v1-v2 and happen if the imap module wasn't installed. Those constants don't get used in newer versions and therefor aren't present anymore.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants