Error in Drupal Theme - Artisteer 2


Author Message
Jen

Posted: 6/29/2009
Quote message 

Hi error comes up with;

warning: DOMDocument::loadXML() [domdocument.loadxml]: Entity 'times' not defined in Entity, line: 1 in /home/sites/photosantorini.com/public_html/themes/site/common_methods.php on line 37.
warning: DOMDocument::loadXML() [domdocument.loadxml]: Extra content at the end of the document in Entity, line: 1 in /home/sites/photosantorini.com/public_html/themes/site/common_methods.php on line 37.
warning: Invalid argument supplied for foreach() in /home/sites/photosantorini.com/public_html/themes/site/common_methods.php on line 42.

Anyone come across this? Its the first template I've made since updating to the latest version 2.2

Thanks
Jen
 
Martin

Posted: 7/6/2009
Quote message 

:-(On closer inspection, I'm getting a different message, so I'll post as a new message.



 
Clooney

Posted: 7/19/2009
Quote message 

Hi there,

Not exactly the same but very similar issue I noticed.

Error message:
Fatal error: Call to undefined method domdocument::loadXML() in .../common_methods.php on line 37.

Configuration:
- Artisteer version 2.2.<any?> incl latest beta (17376)
- Drupal 6.10 - 6.13 (didn't have time to test more)
- XAMPP 1.7.1 (Apache 2.2.11, PHP 5.2.9) on Windows Vista x64

Reproduce (assuming a functional drupal installation):
- Create a page, add a title, a description
- Set it to be a menu for primary links.
- Go to Site Building / Blocks
- Add primary links to "Menu" the region
- Save, and you get the message.

In case you happen to do this, and start having feelings that you may have lost it for good, clicking back in browser should bring back to blocks so setting can be reverted.

Can someone confirm this to me please?

Thanks,
cL[oO]

 
Moises

Posted: 7/25/2009
Quote message 

I had a similiar problem. It could be resolved by changing the page title:

This did not work: "Literature & Downloads"
This did work: "Literature and Downloads"

It seems the Artisteer theme cannot handle the ampersand. With the default theme there did not occur any problems.
 
Moises

Posted: 7/27/2009
Quote message 

Well, it was only part of the problem. It still exists:

warning: DOMDocument::loadXML() [domdocument.loadxml]: Extra content at the end of the document in Entity, line: 35 in /.../sites/all/themes/Version_0d/common_methods.php on line 37.
warning: Invalid argument supplied for foreach() in /.../sites/all/themes/Version_0d/common_methods.php on line 42.

Does this have to do anything with the menu?

I am using drupal 6.13 and artisteer 2.2.0.17376.
 
Mike

Posted: 8/5/2009
Quote message 

:( Any solution for this issue? Is driving me crazy.
 
David

Posted: 8/5/2009
Quote message 

Solution for this problem:

1. Ensure you are using PHP > 5.0
2. ensure php-xml is enabled (yum install php-xml as root)
3. Restart apache
 
Shaun

Posted: 9/23/2009
Quote message 

I've followed each suggestion, but I still get the same error:

warning: DOMDocument::loadXML() [domdocument.loadxml]: Extra content at the end of the document in Entity, line: 4 in C:\wamp\www\sites\site1\themes\theme_1\common_methods.php on line 44.
warning: Invalid argument supplied for foreach() in C:\wamp\www\sites\site1\themes\theme_1\common_methods.php on line 49.

The error only shows up when I put it in the MENU Block. If I change it to BANNER1, no error. If I use other themes using the MENU block it works fine as well. I've altered the menu style in Artisteer, but that didn't help. I don't have Devel installed, and I've simplified the menu itself to just include one item called "Home".

Server stats are:
PHP 5.2.9-1
Apache 2.2.11
Drupal 6.14

Any other ideas?
 
fabdel

Posted: 10/26/2009
Quote message 

Thanks Benoit.

It works for me.

I was experiencing that only links appears on the navbar without buttons styles.
Resolved now.
 
lee

Posted: 10/31/2009
Quote message 

Hey!

I write to you because I know that you know what is this problem..
I have a problem with the Drupal theme. Has generated in Atristeer theme that I moved to Drupal, however, does not work. The point is that it looks completely different than it was generated in atristeer.
I don't know what to do. Previously I did it a few times and everything just worked, but now it doesn't work. Please help me with this ..

 
Artisteer

Posted: 11/17/2009
Quote message 

If you are working with Drupal 5, please download and install this update:

http://www.artisteer.com/media/p4/files/Artisteer.2.3.0.21284.exe

It fixes the issue with Top Menu not being displayed in Drupal 5:

Artisteer Team.
 
ekay

Posted: 6/2/2010
Quote message 

Help! this happened once before so Web host upgraded to PHP5 and it worked. Now it's happening again. Here's the message.

Fatal error: Call to undefined method: domdocument->loadxml() in......common_methods.php on line 51
 
trickli

Posted: 6/8/2010
Quote message 

@ekay: Same problem here :-/
 
belibem

Posted: 7/1/2010
Quote message 

I had the same prob in XAMPP

try comment out the line
extension=php_domxml.dll
in the php.ini file (under apache\bin\)

 
Perroud

Posted: 8/8/2010
Quote message 

Quote candygirl:

Don't know if this will help anyone out there, but I was having a similar problem with the domdocument errors showing up - I'm using Drupal 6.17 & the latest version of Artisteer. My problem ended up being the "Vertical Menu", which apparently does NOT work with Drupal. By putting all the blocks in the Right Sidebar, all error messages disappeared! Hope this helps!


Nice one candygirl, works for me.
Cheers
 
dave99x

Posted: 8/22/2010
Quote message 

insert this line:

# Enable PHP5
AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php

into your .htaccess file (the one in your drupal root). MAGIC -> problems shoulb blasted away

and maybe, if required, edit this section as describded:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
# uncomment the following line:
# RewriteBase /drupal

be happy and smile :-)
 
Shay

Posted: 2/3/2011
Quote message 

candygirl you are awesome :)!
This problem is obviously related to Artisteer, as it happens only with Artisteer generated themes, but your solution works ! I put my problematic block in "left side bar" instead of 'left menu' and problem sorted!
 
Lawrence

Posted: 2/6/2011
Quote message 

Hey Candy Girl,

That's a straight forward work-around, however this issue was discovered prior to vertical menus. I'm thinking there're some attributes that haven't been properly closed in the Artisteer files upon theme generation. Maybe with some peeking around in the files, we could pin-point what attributes aren't using proper closing tags?

I'll speak up if I find anything. :-)
 
Halvor

Posted: 3/2/2011
Quote message 

Subscribing
 
Johnny Foley

Posted: 4/22/2011
Quote message 

candygirl, you're a genius! xx :-)
 
Sandy

Posted: 6/12/2012
Quote message 

Enabling statistics cased this problem for me only when an admin is signed in.
 
Lee Tucker

Posted: 6/13/2012
Quote message 

I have the same problem and have to avoid putting blocks into "left menu"