I’m trying to iron out all of the problems with my page. I know I can come up with a quick fix… but I don’t like quick fixes, because quick fixes brake.
Problem 1
I’m trying to add this PHP Weather Plugin. It’s a great plugin, and know I can get it to work. (The plugin isn’t really even the problem — PHP is killing me) It needs the domxml PHP extension. Yeah, easy enough…right? Wrong — I’m using PHP 5.1.4 and it is a new domxml extension and it doesn’t like WordPress very much. I keep getting this error…
PHP Notice: Constant XML_ELEMENT_NODE already defined in Unknown on lineml 0 PHP Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_TEXT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_PI_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_COMMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_NOTATION_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DTD_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0
At first I couldn’t figure it out, but with a little research I found that the cause was domxml. So what’s the first thing I try to do? Well the first thing I did was uninstall PHP and install an older version. That might have worked except that it couldn’t find my MySQL database. So I went back to PHP 5.1.4. And that’s where I am now.
Problem 2
The Second Problem I have is the “Next – Previous” page links at the bottom of the page. I need it to go to blog/index.php?paged=2 — instead it wants to go to blog/index.php/page/2/. Now this should be so easy to fix, but I can’t figure out why it’s going to the wrong one. Now, after looking closely at different WordPress blogs, I have noticed that they are both used on different pages. I need to find whatever is telling it to do the wrong one.
Problem 3
The upload section at the bottom of the write page does not work for me. I have tried giving write permissions to “/wp-content/uploads” and “/wp-content” — nothing seems to work!
Overall these are pretty small problems and I know they shouldn’t be hard to fix.
**Update**
I fixed all these problems. The two PHP problems I had are fixed with this domxml fix for php 5. Save it to “/PHP5/Pear/domxml-php4-to-php5.php”.

