Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8672449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:12:23+00:00 2026-06-12T19:12:23+00:00

I go through this tutorial and my problem consists in the fact that I

  • 0

I go through this tutorial and my problem consists in the fact that I do not get any function.include error on “The Global Config and Creating The Model” section (when assigning to a variable Mage::getModel('weblog/blogpost'), while the model doesn’t exists yet).

At some point I found in /index.php an if statement in which is called the following method:
Mage::setIsDeveloperMode(true); To test it, I put it outside the if statement (which I know is not good practice).

The result was that I got this warning message:

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : XML declaration allowed only at the start of the document  in /home/dowebro/public_html/magento/lib/Varien/Simplexml/Config.php on line 510

#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', '/home/dowebro/p...', 510, Array)
#1 /home/dowebro/public_html/magento/lib/Varien/Simplexml/Config.php(510): simplexml_load_string('    loadString('    loadFile('/home/dowebro/p...')
#4 /home/dowebro/public_html/magento/app/code/core/Mage/Core/Model/Config.php(318): Mage_Core_Model_Config->loadModulesConfiguration(Array, Object(Mage_Core_Model_Config))
#5 /home/dowebro/public_html/magento/app/code/core/Mage/Core/Model/App.php(414): Mage_Core_Model_Config->loadModules()
#6 /home/dowebro/public_html/magento/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#7 /home/dowebro/public_html/magento/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#8 /home/dowebro/public_html/magento/index.php(91): Mage::run('', 'store')
#9 {main}

but still no error which I would expect.

So, how can I get rid of this Warning message, but more important, how can I see errors in developement mode?

Thank you!

EDIT: While I go on with this tutorial, I see that I don’t get any kind of feedback from core classes. Ex: I should get “Can’t retrieve entity config: weblog/blogpost” while trying yo get data from a model of which resource definition is incomplete. Well, I don’t. 😐

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:12:25+00:00Added an answer on June 12, 2026 at 7:12 pm

    Developer mode is a sort of use strict for PHP and Magento. It forces you to fix everything. If looks like the simplexml_load_string function doesn’t like one of the XML configuration files in your system. You can find out which one by going to line 510 in

    /home/dowebro/public_html/magento/lib/Varien/Simplexml/Config.php
    

    and var dumping the variable that’s being passed to loadFile.

    Based on the error message

    XML declaration allowed only at the start of the document
    

    My guess is your config.xml XML prolog has some whitespace before it

    [    ]<?xml version=...
    

    or you’ve accidentally added a <? somewhere in your XML file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have gone through the fadein/fadeout tutorial that is on this page: For the
I'm new to Spring. I worked through the sections of this tutorial that cover
I was reading through this Advanced Linux Programming tutorial when I encountered a problem.
I am trying to get my head around NHibernate, I've run through this tutorial
I am going through this tutorial , but I already had Ruby 1.8.7 installed.
I am currently working through this tutorial: Getting Started with jQuery For the two
I'm running through this tutorial found here: http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_multiple_tables.htm which teaches how to pass a
I am going through this tutorial about PDO and have come to the point
I am working through this tutorial https://developers.google.com/cloud-print/docs/android for google cloud print. I am trying
I'm currently doing facebook integration and have gone through this tutorial . So far,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.