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

fix FT_UID undefined constant #32

Closed
wants to merge 1 commit into from
Closed

fix FT_UID undefined constant #32

wants to merge 1 commit into from

Conversation

pxpm
Copy link

@pxpm pxpm commented Oct 19, 2017

fix FT_UID undefined constant ref #30

fix FT_UID undefined constant
@Webklex
Copy link
Owner

Webklex commented Oct 19, 2017

Hi @pxpm ,
first of all thanks for your pull request :)

I just don't really get why you changed FT_UID type to a string since FT_UID is a constant provided by the native imap-php funktion and usually an integer..

Could you please provide some additional information on why FT_UID should be handled as a string?

Best regards

@pxpm
Copy link
Author

pxpm commented Oct 19, 2017

Hi @Webklex .
Like the user commented on #30 i was getting the same error.
And could not, for example, run artisan commands till this issue is fixed.
I think it's because of the constant will only be defined later and that causes this error.
It was already assuming 'FT_UID' but throwing error like it says.
So i assume it don't break anything. At least for me didn't and the error vanished. So the constant gets defined later.

`Forgot to mention:

This only occurs in my live host, not in local dev, using xampp for windows, and prod is ubuntu lamp stack`

@icaroscherma
Copy link

@pxpm like @Webklex said, it IS a constant (without '' or "").
You're getting this error because you don't have the php's imap extension installed (and enabled)...

If you are using ubuntu, you can use the following command to install the required libs: (LibC and Kerberos5)
apt-get update && apt-get install -y libc-client-dev libkrb5-dev

and then install the imap extension (compiling, using a package provided by some ppa, or a simple Docker command docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap).

@Webklex Webklex closed this Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants