uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
8.53k stars 459 forks source link

Error Create Ticket #462

Closed Pekerche closed 2 years ago

Pekerche commented 3 years ago

I've been trying for a few days to give REFRESH MAILBOX to pull emails and open a ticket, but it never works. All the information I put about localhost, host, email, password. Everything is correct, but even so it's wrong. The solution I found was to go to the RefreshMailboxCommand.php folder and change the information. I commented on the line I mentioned below and instead of leaving $server.host, I put the information right away. When I ran the Refresh-Mailbox command it worked, it pulled the emails, but it didn't open any Ticket. can anybody help me?

$imap = imap_open($server_host, $server_username, $server_password);

   $imap = imap_open("{dominio.com.br:993/imap/ssl}INBOX", "email.com.br", "***********");
vipin-shrivastava commented 3 years ago

@Pekerche first. put dump() before imap_open to check your save mailbox-information is correct fetch on hit of refresh-command or not.

Screenshot_51

Screenshot_52

If you found, your credentials are correct then put dump() after imap_open to check, it is fetching mails or not.

$imap = imap_open($server_host, $server_username, $server_password);
dump(imap_search($imap, 'SINCE "' . $timestamp->format('d F Y') . '"'));
die;

If it will return an array, Then it is working fine.

Screenshot_53

Pekerche commented 3 years ago

Processing uvdesk mailbox configuration.

  1. Opening imap stream... "{email-ssl.com.br:993/imap/ssl}INBOX" "ticket@domain.com.br" b"E¾´ÓNxš&œñ¼"

I put the DUMP and this password appeared, but it's not the password I put. Swifmailer and uvdesk have the correct password. strange...

Pekerche commented 3 years ago

As the password was giving an error, I put it directly in $imap = imap_open($server_host, $server_username, "Password"); The refresh-mailbox worked, but it didn't create a ticket.

Processing uvdesk mailbox configuration.

  1. Opening imap stream...

  2. IMAP stream opened.

  3. Fetching Email collection since 08 September 2021.

  4. Total fetched email -> 72

  5. Starting to convert Emails into Tickets ->

    =============================================

    Converting email 1 out of 72.

vipin-shrivastava commented 3 years ago

@Pekerche

Processing uvdesk mailbox configuration.

  1. Opening imap stream... "{email-ssl.com.br:993/imap/ssl}INBOX" "ticket@domain.com.br" b"E¾´ÓNxš&œñ¼"

I put the DUMP and this password appeared, but it's not the password I put. Swifmailer and uvdesk have the correct password. strange...

This is the encrypted form of your mailbox password which you got after dump, I am also not understand, why is it printing in encrypt form, you can also check on line 82 `$this->refreshMailbox($mailbox['imap_server']['host'], $mailbox['imap_server']['username'], base64_decode($mailbox['imap_server']['password']), $timestamp, $output, $mailbox);

Here, you can see a decode function base64_decode($mailbox['imap_server']['password']) that helps to decodes your password before execute the imap_open function

Check that this decode function is on line 82 or not?

Pekerche commented 3 years ago

Yes it's on line 82

Pekerche commented 3 years ago
   $this->refreshMailbox($mailbox['imap_server']['host'], $mailbox['imap_server']['username'], base64_decode($mailbox['imap_server']['password']), $timestamp, $output, $mailbox); 
vipin-shrivastava commented 3 years ago

@Pekerche

can you please again try to dump your password & check? Is it correct or not?

Pekerche commented 3 years ago

The password is correct, however if I don't fill in the password directly in $imap = imap_open($server_host, $server_username, $server_password); it doesn't work. The only thing I leave filled out is the password, the rest I don't need. The command looks like this: $imap = imap_open($server_host, $server_username, "shasjah21291");

vipin-shrivastava commented 3 years ago

@Pekerche

If you want to download UVdesk version 1.0.13: composer create-project uvdesk/community-skeleton helpdesk-project v1.0.13

Pekerche commented 3 years ago

wouldn't have his folder?

Pekerche commented 3 years ago

da versão -1.0.13?

Pekerche commented 3 years ago

when I save information either in swiftmailer or mailbox, it always gives this error. Then when I give the command php bin / console c: c the uvdesk goes back to normal error4

Pekerche commented 3 years ago

I was able to solve this problem, it was the permission part, missing some folders. But I still can't convert the email into a ticket. Refresh-Mailbox works perfectly, but it doesn't convert into a ticket.

vipin-shrivastava commented 3 years ago

when I save information either in swiftmailer or mailbox, it always gives this error. Then when I give the command php bin / console c: c the uvdesk goes back to normal error4

It is just because of the cache problem, when you ran PHP bin/console c:c it clears the cache then everything works fine.

vipin-shrivastava commented 3 years ago

@Pekerche

Please share your issue on this email support@uvdesk.com. Our team will help you.

Pekerche commented 3 years ago

OK, thanks for the help. I will contact uvdesk support to resolve the issue of converting email to ticket now.

Pekerche commented 3 years ago

I managed to convert email into ticket, now the problem is to answer the ticket and send the response to the email. It says it was sent successfully, but no response arrives in my email. rsrsrs

adil7475 commented 3 years ago

@Pekerche If you ticket is not creating and parsing in working fine, then please check site_url variable in uvdesk.yaml file, make sure its value is right.

vipin-shrivastava commented 3 years ago

@Pekerche As you can check your site_url, this is also the cause of not sending mails

Pekerche commented 3 years ago

Strange, since the URL is right. After I fix it, it's converting email into ticket, but when I answer a ticket, the response email doesn't arrive.

adil7475 commented 3 years ago

Check your swift mailer configuration if you are using mailjet or another mail provider then make sure your sending email is whitelisted. There is a number of issues in Uvdesk open source project, I fixed a lot for my personal use.

Pekerche commented 3 years ago

So that's what uvdesk support reported, which might be the hosting provider. I'm waiting for the company to answer me. Everything started when I updated the uvdesk folder to the new version, then nothing worked, I did dowgrade and almost everything started working again, that's all.

PeopleInside commented 3 years ago

@adil7475 will be useful discuss issues on the forum or here to improve UVdesk. @Pekerche what version of PHP are you using? Do you have server error log to check? Have you tried to activate the debug by set temporary UVdesk as developer instead of prod?

How to debug errors

komal-sh-27 commented 2 years ago

We are closing this issue if still you are facing issue then you can reply on same mesage thread.