Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/Simplexml/Config.php on line 600

Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/Simplexml/Config.php on line 600

August 27, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/Simplexml/Config.php on line 600

Title: Resolving the Varien Simplexml Config Fatal Error on Magento Migration

After migrating your Magento e-commerce platform to a live server environment, you may encounter the dreaded Fatal error: Call to a member function extend() on a non-object issue in the Varien_Simplexml_Config class. This error commonly arises due to file permissions conflicts or missing dependencies during the migration process.

The specific line number (600) points us to the extend() method within the Varien/Simplexml/Config.php file, which is attempting to call a property of an object that doesn't exist. This usually occurs when the Magento installation is not properly set up on the live server.

Step-by-Step Resolution Approach

1. Verify File Permissions Consistency

The first step is to double-check your file permissions across both local and live environments. Even if you have already adjusted them, permissions can be inadvertently changed during the migration process or due to server configuration differences.

Ensure all files in your Magento root directory (excluding .htaccess) are set to 644 permissions. For directories, use 755 permissions. You can use the following commands via SSH:


chmod -Rf 644 .
chmod -Rf 755 mage

If you're still experiencing issues after adjusting permissions, proceed to the next steps.

2. Clear Cache and Reindex Data

The error might be caused by cached data or misconfigured indexes on the live server that don't match your local environment. Clearing both can help resolve the issue:

To clear Magento's cache, navigate to System > Cache Management in your Magento admin panel and select all checkboxes under Actions. Click Delete.

Next, reindex your data using the Index Management option under System > Index Management. Select all entries and click Reindex All.

3. Check File Ownership

If permissions are set correctly but you're still encountering the error, the file ownership might be causing issues. Ensure that the web server user (apache or nginx) has ownership of all Magento files and directories:


chown -Rf apache:apache .

Replace apache with your actual web server's user if it differs.

4. Verify Configuration Files

The error might stem from a misconfigured XML file being processed by the Varien_Simplexml_Config class. Check all XML files within your Magento installation, ensuring they are correctly formatted and don't contain any syntax errors or invalid nodes.

If you've verified everything and are still experiencing issues, consider reaching out to a professional Magento developer or support service from reputable companies like Laravel Company. They can provide expert assistance in troubleshooting complex migration issues.

Conclusion

The Fatal error: Call to a member function extend() on a non-object issue is typically resolved by ensuring consistent file permissions, clearing cache and reindexing data, and verifying correct file ownership. If you've exhaustively tried these steps and are still facing the problem, it's best to consult with experienced professionals for further diagnosis.

Remember that migrating e-commerce platforms requires meticulous attention to details and thorough testing in both local and live environments to minimize post-migration issues. Always backup your data before making significant changes or adjustments to avoid potential data loss.

Stay informed about the latest Magento best practices by keeping up with the official documentation and following trusted resources like Laravel Company’s blog.

Cache Indexing Security Configuration

Our network