Khalil Shreateh specializes in cybersecurity, particularly as a "white hat" hacker. He focuses on identifying and reporting security vulnerabilities in software and online platforms, with notable expertise in web application security. His most prominent work includes discovering a critical flaw in Facebook's system in 2013. Additionally, he develops free social media tools and browser extensions, contributing to digital security and user accessibility.

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

 

 

How to Debug and Fix “Attempt to Assign Property ‘name’ on Null” in Joomla Extensions Updater
How to Debug and Fix “Attempt to Assign Property ‘name’ on Null” in Joomla Extensions Updater

If you manage a Joomla website, you may encounter an error when trying to update extensions: Attempt to assign property 'name' on null. This issue can occur in Joomla 5, Joomla 6, or even older versions. Fortunately, you can resolve it by enabling debug mode, identifying the problematic file, and disabling the faulty update source. This tutorial provides a step‑by‑step guide to fixing the error permanently.

 

Step 1: Enable Joomla Debug Mode

  1. Log in to your Joomla administrator dashboard.
  2. Navigate to System → Global Configuration → System.
  3. Set Debug System to Yes and save the settings.
  4. Return to the extension update page and refresh. The debug output will now show the exact file causing the error.

Typically, the error points to:
/libraries/src/Updater/Adapter/ExtensionAdapter.php

Step 2: Insert Debugging Code

Access your server via FTP or cPanel File Manager and navigate to the Joomla root directory. Open the file ExtensionAdapter.php and locate the startElement function. Insert the following debugging code after the opening if statement and before the switch ($name) statement:

// === DEEP DEBUG: Track if we are about to crash ===
if ($name === 'NAME' && $this->currentUpdate === null) {
$debugData = [
'timestamp' => date('Y-m-d H:i:s'),
'update_site_id' => $this->updateSiteId ?? 'NULL',
'current_tag' => $name,
'stack' => $this->stack,
// 'xml_parser' line removed completely
'backtrace' => debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10),
'url_being_parsed' => $this->_url ?? 'unknown'
];
$logMessage = print_r($debugData, true);
@file_put_contents(JPATH_ROOT . '/xml_parser_debug.log', $logMessage . PHP_EOL . str_repeat('-', 80) . PHP_EOL, FILE_APPEND);
}
// === END DEEP DEBUG ===

Save the file.

Step 3: Generate and Analyze the Debug Log

Go back to the Joomla extension updater and refresh the page (the error will reappear). Then, in your Joomla root directory, look for a newly created file named xml_parser_debug.log. Open it and scroll to the last line. You will see a URL being parsed – this is the update endpoint that fails.

For example, the log may show a URL from act.com (associated with an “Ads Inside” extension). Although the URL works manually, the server‑to‑server connection fails, causing the error.

Step 4: Disable the Problematic Update Site

  1. In your Joomla administrator, go to System → Update Sites.
  2. Search for the extension name (e.g., “Ads Inside”).
  3. Click on the update site entry and set Status to Disabled.
  4. Save your changes.

Step 5: Verify the Fix

Return to the extension update page. The error should be gone, and you will see available updates. You can now update all extensions normally.

Note: If the error persists, repeat the process. The debug log may reveal multiple problematic extensions; disable each one’s update site until the error is resolved.

Conclusion

By enabling Joomla’s debug mode, inserting a simple logging script, and disabling the faulty update source, you can eliminate the “Attempt to assign property ‘name’ on null” error. This method works across Joomla 5, 6, and older versions. For further assistance, refer to the original video tutorial by Khalil Shreateh : https://youtu.be/PWd9ySdvSUU .

 

 

Written by Khalil Shreateh Cybersecurity Researcher & Social Media Expert Official Website: khalil-shreateh.com

Social Media Share