Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Error : XML document must contain a root level element in paypay_functions.php

    Hi

    I am new to Zen Cart, and have just installed it.

    Installed XAMPP (xampp-win32-1.7.2.exe).

    Installed Zen Cart (zen-cart-v1.3.8a-full-fileset-12112007.zip)

    During the install I got errors:

    Function ereg() is deprecated - got round this by replacing 'E_ALL' with 'E_ALL & ~E_DEPRECATED'

    Cannot redeclare date_diff() in admin\includes\functions\general.php - got round this by renaming it my_date_diff.

    Now I have it running and can see the store.

    However, when I open zen-cart as a project using Visual Web Developer 2008 it comes up with this error:

    Error 1 XML document must contain a root level element. C:\xampp\htdocs\zen-cart\includes\modules\payment\paypal\paypal_functions.php

    Any ideas how to solve this?

  2. #2
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    XAMPP 1.7.2 runs PHP 5.3.0 which is incompatible with Zen Cart v1.3.8a.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  3. #3
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    Quote Originally Posted by canopy View Post
    XAMPP 1.7.2 runs PHP 5.3.0 which is incompatible with Zen Cart v1.3.8a.
    OK, but it is going to have to adapt to it eventually. I think it is a backward step to go for out-of-date versions of PHP. Let's not be defeatist about this and find out how to adapt it. I have already got it working.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    Quote Originally Posted by stapes View Post
    OK, but it is going to have to adapt to it eventually. I think it is a backward step to go for out-of-date versions of PHP. Let's not be defeatist about this and find out how to adapt it. I have already got it working.
    Ya ya ya ... a new version will be released shortly which *will* be PHP 5.3 compatible.
    There's no point building a backwards-compatible adaptation for the older version.

    In the meantime, I'm glad to hear you've got a workaround for one of the warnings.

    But the more effective workaround for Zen Cart v1.3.8a and older would be to use the prior version of XAMPP.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    Quote Originally Posted by DrByte View Post
    Ya ya ya ... a new version will be released shortly which *will* be PHP 5.3 compatible.
    There's no point building a backwards-compatible adaptation for the older version.

    In the meantime, I'm glad to hear you've got a workaround for one of the warnings.

    But the more effective workaround for Zen Cart v1.3.8a and older would be to use the prior version of XAMPP.
    I did try to find an earlier version of XAMPP, namely 1.6.8, but I could not find a trustworthy version of it. All the ones I could download were faulty.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    You mean all the SourceForge links are bad?
    http://sourceforge.net/projects/xamp...Windows/1.6.8/
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error : XML document must contain a root level element in paypay_functions.php

    Quote Originally Posted by DrByte View Post
    You mean all the SourceForge links are bad?
    http://sourceforge.net/projects/xamp...Windows/1.6.8/
    Yes. The Status link is missing for starters.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 5 Jan 2015, 08:09 PM
  2. Replies: 1
    Last Post: 18 Oct 2013, 08:05 PM
  3. Replies: 3
    Last Post: 24 Oct 2010, 05:43 AM
  4. UPS XML Auto Export is missing Top Level Element
    By engine411 in forum Addon Shipping Modules
    Replies: 14
    Last Post: 25 Jun 2009, 04:58 AM
  5. XML Parsing Error: StartTag: invalid element name
    By philwebsupport in forum General Questions
    Replies: 1
    Last Post: 18 May 2009, 09:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg