Foros de discusión

Regarding PHP Portlet Installation

pradeep.k pradeep.k, modificado hace 16 años.

Regarding PHP Portlet Installation

New Member Mensajes: 4 Fecha de incorporación: 29/03/06 Mensajes recientes
HI,

I am trying to create sample PHP portlet using following URL.
http://wiki.liferay.com/index.php/How_to_create_a_simple_php_portlet

After deployment i am not able to see the expected portlet output.

I am getting http 404 error.

Is there any configurations required after deployment?

what is wrong with this?

Please help me in this regard.

Liferay Version: liferay-portal-tomcat-5.5-4.3.4

Urgent.............

Thank You
thumbnail
Michael Saechang, modificado hace 16 años.

RE: Regarding PHP Portlet Installation

Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
Hi Pradeep,

A few things to check is after deploying your portlet does it appear in the correct directory?

\tomcat-5.5.25\webapps\(your portlet should be here)


Also when zipping the files did it have any folders or subfolders? If there are folders and subfolders within the zip file the portlet will not deploy correctly.

-mike
pradeep.k pradeep.k, modificado hace 16 años.

RE: Regarding PHP Portlet Installation

New Member Mensajes: 4 Fecha de incorporación: 29/03/06 Mensajes recientes
HI Mike,

Thanks for reply.

PHP portlet was deployed successfully.
I am able to add the portlet through add content.

But in the portlet view it is showing "open" link.
(I guess its is showing minimise_state.jsp)

It is not able to locate the index.php

please let me know any configurations required after deployment.


Thank You,

Regards,
Pradeep
thumbnail
Michael Saechang, modificado hace 16 años.

RE: Regarding PHP Portlet Installation

Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
hi,

I'm not quite sure I understand your problem. When you said the portlet view is showing "open" link, what do you mean by that?

From my understanding there should not be any configurations needed after deployment.

-mike
non non non, modificado hace 16 años.

RE: Regarding PHP Portlet Installation

New Member Mensaje: 1 Fecha de incorporación: 27/12/07 Mensajes recientes
I have problem when install php portlet according to that tutorial, too.(http://wiki.liferay.com/index.php/How_to_create_a_simple_php_portlet)
But it event ca'nt deploy.
Tomcat show that:
03:24:26,149 ERROR [PluginPackageUtil:616] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
03:24:31,441 ERROR [PluginPackageUtil:616] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
03:24:32,533 ERROR [IndexWriterFactory:195] Unable to create a new writerorg.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Users\maint\liferay\lucene\0\write.lock

So, what will I have to do ?
Please show me.
Thanks alot.
thumbnail
Michael Saechang, modificado hace 16 años.

RE: Regarding PHP Portlet Installation

Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
hey,

The wiki article refers to 4.4 version of liferay. If you're getting a nullPointerException its a known issue for liferay versions which are earlier than 4.4

LEP-4364

As for the current issue...

03:24:26,149 ERROR [PluginPackageUtil:616] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
03:24:31,441 ERROR [PluginPackageUtil:616] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
03:24:32,533 ERROR [IndexWriterFactory:195] Unable to create a new writerorg.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Users\maint\liferay\lucene\0\write.lock


could you attach the php portlet you are trying to deploy so i could take a look at it? You could remove information that you don't want the public to see.

thanks

-mike
Rahul Maru, modificado hace 13 años.

RE: Regarding PHP Portlet Installation

New Member Mensajes: 5 Fecha de incorporación: 3/08/10 Mensajes recientes
I know it is an old thread, but I am getting similar issue again, i created a sample php file, with just hello world in echo statement, zipped it and uploaded it in install more portlets.

It installed successfully, and I am able to see it in the add component menu, but when I add it, there is a open hyperlink and when I click that I get a 404 error page. Here is screen shot of what is happening.



Let me know if I have to change any configuration settings.

My php code is
<!--?php
	echo 'Hello World';
?-->
Aaron Fuleki, modificado hace 11 años.

RE: Regarding PHP Portlet Installation

New Member Mensaje: 1 Fecha de incorporación: 19/09/12 Mensajes recientes
I'm seeing exactly the same thing as Rahul. My zip file deploys, I can add it to a page, but the portlet contains nothing but an "open" link, which displays nothing but a Tomcat 404 error page.

I've tried zipping a single "Hello World" index.php, as well as the sample php portlet from SVN (seems to have lots of other useful stuff). Bare files or directories, no dice.

Has anyone successfully deployed PHP portlets? The documentation doesn't seem to indicate that there are any other steps or dependencies required, so I assume the various bridge jars I see in the deployed webapps directory must contain or reference a working PHP binary somehow.