Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

xslt error

Participant ,
Jul 07, 2007 Jul 07, 2007

Copy link to clipboard

Copied

When I create my site locally I have no problem displaying my RSS feeds.
My MM file for translating the xslt is located in:

includes/MM_XSLTransform/MM_XSLTransform.class.php

However when I load my files to my server I get this error!

MM_XSLTransform error.
The server could not perform the XSL transformation because an XSLT processor for PHP could not be found. Contact your server administrator and ask them to install an XSLT processor for PHP.


I tried extracting the file to different levels
MM_XSLTransform/MM_XSLTransform.class.php and
MM_XSLTransform.class.php

But it didn't make any difference
can you advise?

thank you
Kevin Raleigh

TOPICS
Server side applications

Views

683
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2007 Jul 07, 2007

Copy link to clipboard

Copied

kevin raleigh wrote:
> However when I load my files to my server I get this error!
>
> MM_XSLTransform error.
> The server could not perform the XSL transformation because an XSLT processor
> for PHP could not be found. Contact your server administrator and ask them to
> install an XSLT processor for PHP.


The answer is quite simple: your hosting company doesn't support the PHP
XSLT extension in PHP 4 or the XSL functions in PHP 5. The XSLT
extension is not enabled by default in PHP 4, but the XSL functions are
enabled by default in PHP 5.

It's highly likely that your hosting company is still using PHP 4. Tell
your hosting company that PHP 5 has been stable since June 2004, and
that you will move your site elsewhere if it doesn't upgrade to PHP 5 in
the immediate future. Plans to drop support for PHP 4 are now well
advanced. It's time to make the move.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 07, 2007 Jul 07, 2007

Copy link to clipboard

Copied

I was told by my provider that they are running PHP 5 and that they do support XML and XSLT, however I have to enable it in my php.ini file.

My php.ini file on the server is a bear bones file. Maybe six lines of code in it.
Can you tell me what part of my php.ini file needs to be setup?

I can copy the data from my local copy of php.ini to my server to set things up.
However I have everything enabled for local development so I don't think that I want to upload the file as is from my localhost.

your insight is greatly appreciated
thank you
Kevin Raleigh

PS Can you advise on using the phpMailer from:
http://phpmailer.sourceforge.net/

I could really use some advise on it. I know I should start a different thread and If I get a postive response I will do so.

thanx

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2007 Jul 07, 2007

Copy link to clipboard

Copied

kevin raleigh wrote:
> I was told by my provider that they are running PHP 5 and that they do support
> XML and XSLT, however I have to enable it in my php.ini file.

I'm not very impressed with your hosting company if that's all they can
tell you. They should provide you with the information you need to
enable the features you want, or preferably enable them for you.

> Can you tell me what part of my php.ini file needs to be setup?

In PHP 5, XML and XSL are enabled by default on Linux servers. Is your
server running on Windows?

> PS Can you advise on using the phpMailer from:
> http://phpmailer.sourceforge.net/

I used it once, a long time ago, but I don't know a great deal about it.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 07, 2007 Jul 07, 2007

Copy link to clipboard

Copied

I appreciate your assistance and time.
I was able to resolve the problem displaying the RSS feeds by modifying my file extensions to read php5.

However, After manually updating all of my files to the php5 extension a further conversation with my provider informed me that I could have handled the whole thing simply by modifing the .htaccess file and setting my paths as such:

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php5 .php5
AddHandler x-httpd-php .php4

by default all of my files were using php4 because of the above situation.
NOT GOOD.

This would have allowed my server to correctly Identify that indeed I could use the XSL.dll library for RSS feeds.

No I am not to happy with them at the moment! ;-(
That and one of the techs tried to argue with me after talking with their advanced department and tell me they didn't support XML. Go figure...

insight always appreciated
Thank You
Kevin Raleigh

PS Do you have a favorite mail program that I could use to send emails?
I know that you haven't used phpMail for some time as you stated!
However is there anything that I could use to just send HTML email to
my users?

thanx

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2007 Jul 08, 2007

Copy link to clipboard

Copied

kevin raleigh wrote:
> I was able to resolve the problem displaying the RSS feeds by modifying my
> file extensions to read php5.

Great.

> PS Do you have a favorite mail program that I could use to send emails?
> I know that you haven't used phpMail for some time as you stated!
> However is there anything that I could use to just send HTML email to
> my users?

Sorry, I can't help you there. I don't use HTML email. My forthcoming
book, "The Essential Guide to DW CS3 with CSS, Ajax, and PHP", has a
very nifty script that automates much of the process of sending email
from an online form, but it's strictly plain text.

However, if you start a separate thread, I'm sure there are plenty of
other people who might be able to offer some advice. Good luck.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 08, 2007 Jul 08, 2007

Copy link to clipboard

Copied

I just realized as I reread this message that I have your book.
I haven't had a chance to work through it yet but it is next on the list
of tech books to read.

How very cool

thank you
Kevin

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2007 Jul 09, 2007

Copy link to clipboard

Copied

LATEST
kevin raleigh wrote:
> I just realized as I reread this message that I have your book.
> I haven't had a chance to work through it yet but it is next on the list
> of tech books to read.

Hope you find it useful. Thanks for buying. :-)

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines