php - Uber Uploader XML ERROR: XML_ERR_NAME_REQUIRED at line 1 with hwdMediaShare

990

Uber uploader was working perfectly, and then suddenly it doesn't work and has this error:

XML ERROR: XML_ERR_NAME_REQUIRED at line 1

It occasionally starts working again and then goes back to this problem.

884

Answer

Solution:

This error occurs because the joomla 32-bit random form token occasionally begins with a number, causing an invalid tag in the .redirect xml file.

A quick fix is to rename the invalid xml tags before parsing:

  1. Open joomla\components\com_hwdmediashare\libraries\uber\ubr_finished_lib.php

  2. Add the following code tofunction parseFeed()

    # Precede invalid tag names with key_
    $xml_post_data = preg_replace('/\<([0-9][^\>]*)\>([^\<]*)\<\/([0-9][^\>]*)\>/',
    '<key_$1>$2</key_$3>', $xml_post_data);
    

Or if you don't need the joomla form token then remove it.

People are also looking for solutions to the problem: php - Not checking for User if existing

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.