Jump to content

Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 24 in C:\wamp64\www\new_project\project\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Reader\Html.ph


Recommended Posts

I'm not sure why you're getting HTML warnings when trying to load an Excel file.

And it's just a warning. Is there a problem?

Downloading the library is the first step; next is implementing it. What have you done so far? Show your code (and please use the '<>' button to paste it here in the thread).

I have added the php spreadsheet library using composer and running the code to upload the excel data into database.

image.thumb.png.aec3e21567ba5f81b29e7d1eeecf9672.png

It gives the warning message but its not uploading the data into the database

After your initial

if(isset($_POST['save_excel_data'])){

add this:

die("<pre>".var_export($_FILES, true)."</pre>");

Just check and make sure you've got the data you think you've got.

  • 2 weeks later...

sending mail using swift mailer where i am getting the below error

Fatal error: Uncaught Swift_TransportException: Failed to authenticate on SMTP server with username "naikpuja1097@gmail.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials s18-20020a170902a51200b0019f39e4f120sm2611923plq.18 - gsmtp ". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials s18-20020a170902a51200b0019f39e4f120sm2611923plq.18 - gsmtp ". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials s18-20020a170902a51200b0019f39e4f120sm2611923plq.18 - gsmtp ". in C:\Apache24\htdocs\swiftmailer\vendor\swiftmai in C:\Apache24\htdocs\swiftmailer\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\Esmtp\AuthHandler.php on line 191

Make a new thread, because this error has absolutely nothing to do with loading an excel spreadsheet, or any of the code you provided.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.