Skip to main content
Inspiring
September 19, 2008
Question

DW 8.0.2 hot fix ref 207225 broke with php 5.2.6

  • September 19, 2008
  • 11 replies
  • 1400 views
DW hotfix 8.0.2 which fixed the following issue (in php 5.1.4),
After upgrading to php 5.2.6 I am receiving the same mm xsl transform error
I have had to downgrade my php to 5.2.5
Please can this be investigated.

XSL Transformation server behavior doesn't work with PHP 5.1.4An XSLT fragment embedded in a PHP page using the XSL Transformation server behavior triggers the following MM_XSLTransform error when processed by a PHP 5.1.4 server:

MM_XSLTransform error.
http://newsrss.mysite.com/rss/rss.xml is not a valid XML document.
Non-static method DOMDocument::loadXML() should not be called statically, assuming $this from incompatible context in file http://newsrss.mysite.com/rss/rss.xml.

The error message incorrectly reports that the XML data source is not a valid XML document. The same page displays successfully when processed by a PHP 5.1.2 server. This problem occurs in Dreamweaver 8.0, 8.0.1 and 8.0.2 and is due to the use of a static function call that was newly deprecated in PHP 5.1.4. (Ref. 207225)
This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Inspiring
September 23, 2008
bikeman01 wrote:
> Thankfully 1and1 came up trumps with the following advice:
>
> By default "fopen" function is disabled in php 5. order to enable it
> you have to activate or turn on fopen function in php.ini.
> allow_url_fopen = On
> allow_url_include = On

1and1 speak with forked tongue. The default settings in PHP 5.2 are as
follows:

allow_url_fopen = On
allow_url_include = Off

You should not normally enable allow_url_include as it represents a
serious security risk. There should be no risk with allow_url_fopen.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
bikeman01Author
Inspiring
September 23, 2008
Thankfully 1and1 came up trumps with the following advice:

By default "fopen" function is disabled in php 5. order to enable it
you have to activate or turn on fopen function in php.ini.
allow_url_fopen = On
allow_url_include = On
Inspiring
September 22, 2008
bikeman01 wrote:
> I think you are using a newsgroup and do have answered a post which I
> subsequently deleted/edited.

Yes, most of the community experts, as well as a lot of the other people
who answer questions, use a newsreader. Editing messages in the web
interface tends to lead to confusion. Thanks for reposting.

> I have just ried my site on a 2nd web host also with php5.2.6 and it works!
> So you're right the code is ok.

Thanks for the confirmation.

> Both web host's phpinfo() are exactly the same!
>
> Please can you help me identify what is wrong with my main host (1and1).

That error is caused by this line:

$xml = DOMDocument::loadXML($content);

The most likely cause is that the old version of
MM_XSLTransform.class.php has somehow been uploaded to the host where
you get the error. Delete MM_XSLTransform.class.php and upload a clean,
new version.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
bikeman01Author
Inspiring
September 22, 2008
not an old file
deleted, reuploaded
lines are definitely commented out
still a problem
bikeman01Author
Inspiring
September 22, 2008
not an old file
deleted, reuploaded
still a problem
Inspiring
September 19, 2008
bikeman01 wrote:
> DW hotfix 8.0.2 which fixed the following issue (in php 5.1.4), is not
> compatible with php 5.2.6
> After upgrading to php 5.2.6 I am receiving the same mm xsl transform error
> I have had to downgrade my php
> Please can this be investigated.

I don't have PHP 5.2.6 installed. I'm running 5.2.5, and there's
absolutely nothing wrong with the code used in the 8.0.2 hotfix. The
error message you're quoting says DOMDocument::loadXML() should not be
called statically. The code used in the hotfix doesn't call it
statically. That was the fix - *not* to call it statically.

It sounds as though you're using an old version of
MM_XSLTransform.class.php. You can check whether you have the right
version by looking at lines 301-303. They should look like this:

// $xml = DOMDocument::loadXML($content);
$doc = new DOMDocument();
$err = $doc->loadXML($content);

Note that the first line is commented out. That's the line that caused
the error. The next two lines fixed the problem.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
bikeman01Author
Inspiring
September 20, 2008
I did not quote an error message - the text provided was from the 8.0.2 hot fix documentation.

The error message I receive is not very informative:
MM_XSLTransform error.
Error opening http://domain.co.uk/daily_delivery/xmlaccess.asp?uid=837581813 .

Have checked and, my MM_XSLTransform.class.php, lines 301-303 is correct - see below:

// $xml = DOMDocument::loadXML($content);
$doc = new DOMDocument();
$err = $doc->loadXML($content);

This was expected since I have the 802 hot fix installed.

As I said the problem was fixed up to php 5.2.5. Going to php 5.2.6 has broken this again. I don't know what has changed in php 5.2.6 that might cause this. Nothing else has changed. Reverting back fixes. This cannot be a long term solution as my host is pushing to upgrade.

Are you able to confirm this problem in php 5.2.6?

If confirmed, what is the process for raising a bug and will Adobe fix it?
bikeman01Author
Inspiring
September 21, 2008
I have just ried my site on a 2nd web host also with php5.2.6 and it works!
So you're right the code is ok.

So I guess I have a web server problem.
I have checked the adobe docs and I need:

For PHP 5:
DOM/XML
libXML
XSL
libxslt

Here is an excerpt of my phpinfo()

dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.32
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

libxml
libXML support active
libXML Version 2.6.32
libXML streams enabled

Both web host's phpinfo() are exactly the same!

Please can you help me identify what is wrong with my main host (1and1).

Thanks