Can't open files with extension php

Bug #175563 reported by Ricardo Marmolejo García
6
Affects Status Importance Assigned to Milestone
KompoZer
Unknown
Unknown
kompozer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kompozer

First, my English is a translation of google translator.

When I go to open a file with php extension, I get a dialogue to download or open with kompezor. If it opens again be in the same situation, and I am not interested in downloading, I want to open it!
If I rename the extension to html, htm ... So I can open it perfectly, even though the I called backup (.php~).

I tried to add the mime.type php /usr/share/kompozer/defaults/pref/all.js In line 630 which sets:

pref("network.http.accept.default", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1");

But nothing. thx (is my first bug report)

Revision history for this message
palichis (palichis-solid) wrote : Re: [Bug 175563] Can't open files with extension php

2007/12/11, makiolo <email address hidden>:
> Public bug reported:
>
> Binary package hint: kompozer
>
> First, my English is a translation of google translator.
>
> When I go to open a file with php extension, I get a dialogue to download or open with kompezor. If it opens again be in the same situation, and I am not interested in downloading, I want to open it!
> If I rename the extension to html, htm ... So I can open it perfectly, even though the I called backup (.php~).
>
> I tried to add the mime.type php
> /usr/share/kompozer/defaults/pref/all.js In line 630 which sets:
>
> pref("network.http.accept.default",
> "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1");
>
> But nothing. thx (is my first bug report)
>
> ** Affects: kompozer (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> Can't open files with extension php
> https://bugs.launchpad.net/bugs/175563
> You received this bug notification because you are a member of Ubuntu
> Spanish LoCoTeams, which is a bug contact for kompozer in ubuntu.
>

question is installed and configured correctly on your apache module php?

configuration
Inside
/ Etc/apache2/mods-available/php5.load
Must go
LoadModule php5_module / usr/lib/apache2/modules/libphp5.so
libphp5.os if your installed php5
libphp4.so if your installed php4

And within
/ Etc/apache2/mods-available/php5.conf
Must go
<IfModule mod_php5.c>
   AddType application / x-httpd - php. Php. Phtml. Php3
   AddType application / x-httpd-php-source. Phps
</ IfModule>

--
no enviar archivos con formatos privativos ya que no los podre leer,
porfavor mandar en formatos puros como txt, pdf, odt, html, cvs,

palichis - Paul Ochoa
Luis Pasteur 2 - 30 y Nicolas Copernico
Teléfono. 593-7-2451427
Celular 593-99435036
mail: <email address hidden>
chat: <email address hidden>
web: http://www.crice.ec.nu

Revision history for this message
Insanejokajams (guiurcr) wrote :

I think you are trying to surf in web pages with php content... I´m wrong?
the browser that you are using, is capable to manage that extension.?
Try using Firefox, and give us more information about...

what is your primary language?

maybe some user can be help you in your own language and be more specific
with the solution.

God day!

2007/12/11, palichis <email address hidden>:
>
> 2007/12/11, makiolo <email address hidden>:
> > Public bug reported:
> >
> > Binary package hint: kompozer
> >
> > First, my English is a translation of google translator.
> >
> > When I go to open a file with php extension, I get a dialogue to
> download or open with kompezor. If it opens again be in the same situation,
> and I am not interested in downloading, I want to open it!
> > If I rename the extension to html, htm ... So I can open it perfectly,
> even though the I called backup (.php~).
> >
> > I tried to add the mime.type php
> > /usr/share/kompozer/defaults/pref/all.js In line 630 which sets:
> >
> > pref("network.http.accept.default",
> > "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
> ,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=
> 0.1");
> >
> > But nothing. thx (is my first bug report)
> >
> > ** Affects: kompozer (Ubuntu)
> > Importance: Undecided
> > Status: New
> >
> > --
> > Can't open files with extension php
> > https://bugs.launchpad.net/bugs/175563
> > You received this bug notification because you are a member of Ubuntu
> > Spanish LoCoTeams, which is a bug contact for kompozer in ubuntu.
> >
>
>
> question is installed and configured correctly on your apache module php?
>
> configuration
> Inside
> / Etc/apache2/mods-available/php5.load
> Must go
> LoadModule php5_module / usr/lib/apache2/modules/libphp5.so
> libphp5.os if your installed php5
> libphp4.so if your installed php4
>
> And within
> / Etc/apache2/mods-available/php5.conf
> Must go
> <IfModule mod_php5.c>
> AddType application / x-httpd - php. Php. Phtml. Php3
> AddType application / x-httpd-php-source. Phps
> </ IfModule>
>
> --
> no enviar archivos con formatos privativos ya que no los podre leer,
> porfavor mandar en formatos puros como txt, pdf, odt, html, cvs,
>
> palichis - Paul Ochoa
> Luis Pasteur 2 - 30 y Nicolas Copernico
> Teléfono. 593-7-2451427
> Celular 593-99435036
> mail: <email address hidden>
> chat: <email address hidden>
> web: http://www.crice.ec.nu
>
> --
> Can't open files with extension php
> https://bugs.launchpad.net/bugs/175563
> You received this bug notification because you are a member of Ubuntu
> Spanish LoCoTeams, which is a bug contact for kompozer in ubuntu.
>

Revision history for this message
Ricardo Marmolejo García (makiolo) wrote :

Thanks, but ...

I have Apache + PHP and I can see php interpreted url type http://localhost/phpinfo.php.
When we opened with firefox file:///var/www/phpinfo.php appears dialogue open / download, OK no problem. Firefox is a browser html and could not interpret the php, showing it could just as plain text if the mimes are configured to do so.
The problem with kompozer it like this, if I put in teminal:
Kompozer file:///var/www/phpinfo.php
Kompozer should allow editing the file as HTML, I do not want to interpret php, only to edit it.
The proof that kompozer would be able to do so is that kompozer file:///var/www/phpinfo.php~ works perfectly, as a backup, with a different extension .php

Greetings

Revision history for this message
benja (attune) wrote : Re: [Bug 175563] Re: Can't open files with extension php

is necessary start your service apache or check that you have installed
the php packages in synaptic

To start the service is apache

 sudo /etc/init.d/apache2 start

Benja

makiolo escribió:
> Thanks, but ...
>
> I have Apache + PHP and I can see php interpreted url type http://localhost/phpinfo.php.
> When we opened with firefox file:///var/www/phpinfo.php appears dialogue open / download, OK no problem. Firefox is a browser html and could not interpret the php, showing it could just as plain text if the mimes are configured to do so.
> The problem with kompozer it like this, if I put in teminal:
> Kompozer file:///var/www/phpinfo.php
> Kompozer should allow editing the file as HTML, I do not want to interpret php, only to edit it.
> The proof that kompozer would be able to do so is that kompozer file:///var/www/phpinfo.php~ works perfectly, as a backup, with a different extension .php
>
> Greetings
>
>

Revision history for this message
Tony Yarusso (tonyyarusso) wrote :

>
> Can't open files with extension php
> https://bugs.launchpad.net/bugs/175563
> You received this bug notification because you are the bug contact for
> KompoZer.
>

I'm not 100% sure, but I think this is an underlying Gecko issue (or some
other underlying engine type thing). KompoZer still uses Gecko 1.7 if I
remember correctly, which is a few version behind trunk now. If you
remember, Firefox used to have a similar behavior sometimes. I believe we
are running into the same bug Firefox had, which could be fixed by either a)
updating KompoZer to use the current version of Gecko (the best, but most
time-intensive option), or applying the relevant patch from the upstream
version.

--
Tony Yarusso
http://blog.tonyyarusso.com/

Revision history for this message
Tony Yarusso (tonyyarusso) wrote :

Follow-up: You might try the HandCoder extension from http://fabiwan.kenobi.free.fr/HandCoder/ and report back.

Changed in kompozer:
status: New → Incomplete
Revision history for this message
Ricardo Marmolejo García (makiolo) wrote :

HandCoder dont work, is for nvu only ... When install dont happend nothing

Thx for link , try nvu ? want a IDE php w autocompletation .... like kompozer. Now use quanta but dont like kde style.
Need help w this .... Can developers of HandCoder change this for kompozer?

thx

Revision history for this message
D B (eburner) wrote :

In Kompozer in windows, it opens .php files just fine. In Ubuntu, I have to rename the file to .html, edit it, then rename it back to .php before I upload it to my webserver.

I wish I could give a reason for this, but I'm at a loss.

Changed in kompozer:
status: Incomplete → Confirmed
Revision history for this message
Yves Mairesse (ymairesse) wrote :

Sorry boys (and girls)
HandCoder works really fine with KompoZer (Windows & Linux). Didn't try with NVU.
Don't upgrade to Ubuntu 8.10 if you need KompoZer. The same problem occurs with the latest Mandriva distribution.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kompozer - 1:0.7.10-0ubuntu5

---------------
kompozer (1:0.7.10-0ubuntu5) jaunty; urgency=low

  * Removed debian/kompozer.dirs, never needed.
  * debian/kompozer.desktop
   - Moved to "Development" category in desktop file. (LP: #148935)
   - Added some common mimetypes for a web editor. (LP: #175563)
   - Added the generic name.
   - Added Spanish translation
  * debian/mozconfig.debian
   - Added --with-system-nspr (LP: #312972)
   - Added default mozilla five home (LP: #155505)
  * debian/rules
   - Added dh_desktop to updates the MIME type cache
  * debian/kompozer-config.1 and debian/kompozer.manpages
   - Added manpage from upstream to kompozer-config binary

 -- Surfaz Gemon Meme <email address hidden> Mon, 09 Mar 2009 23:03:45 +0000

Changed in kompozer:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.