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

Use of undefined constant FT_UID - assumed 'FT_UID' #14

Closed
robertscholts opened this issue Aug 16, 2017 · 14 comments
Closed

Use of undefined constant FT_UID - assumed 'FT_UID' #14

robertscholts opened this issue Aug 16, 2017 · 14 comments
Assignees

Comments

@robertscholts
Copy link

Hi there!

I just did a fresh installation of your package and encouterd the following error

Use of undefined constant FT_UID - assumed 'FT_UID'

Its comming from your package because it appears as soon as i add the package server provider. Im not doing anything with the package yet.

I hope this gives you some information.

Kinda regards,

Robert

@robertscholts
Copy link
Author

After some more research it looks to come from the following line:
src/config/imap.php:83

change that line to 'fetch'=> 'PT_UID' returns in the next error:

Call to undefined function Webklex\IMAP\imap_open()

@Webklex
Copy link
Owner

Webklex commented Aug 16, 2017

Hi Robert,
I assume you tried the example code?

If not, please provide some code, so I can take a look at it :)

Best regards,
Malte

@Webklex Webklex self-assigned this Aug 16, 2017
@robertscholts
Copy link
Author

Hi,

I'm not running any code yet. :) all i did was a fresh installation and add the service provider and the alias.

Kind regards,

Robert

@robertscholts
Copy link
Author

The laravel version im using is: Laravel Framework 5.4.33

So i added your package to the json file.
run composer install
added the service provider
added the alias

those are the steps i followed

@Webklex
Copy link
Owner

Webklex commented Aug 16, 2017

Ah I see, well please do me a favor and create a little php file (e.g. imap_test.php) and place the following inside:
<?php $mbox = imap_open("{imap.example.org:143}", "username", "password");

If you get a similar error, I wont be able to fix it. If it works, I will take a closer look at it and try to release an update as soon as possible.

@robertscholts
Copy link
Author

Ill have a look once im back again!

@robertscholts
Copy link
Author

That just gives me a blank page :)

@robertscholts
Copy link
Author

2 hours later and a once again a new installation and now it works. :)

@paulchill
Copy link

enable the imap dll in the php.ini

@guillenotfound
Copy link

Can you explain how to do it? Facing same issue.

@Webklex Webklex reopened this Sep 20, 2017
@Webklex
Copy link
Owner

Webklex commented Sep 20, 2017

Hi @ZiFFeL1992 ,
could you provide some more details? Have you tried to reinstall the package? Are you running on the latest version? Is this snipped failing: <?php $mbox = imap_open("{imap.example.org:143}", "username", "password");? Which Laravel version are you working with?

Best regards

@guillenotfound
Copy link

After reinstalling one more time seems to work, sorry... And thanks!

@Arcave
Copy link

Arcave commented Dec 7, 2017

Caused by a requirement for the php-imap module. Once enabled this constant becomes available and removes this error.

@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

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

6 participants