Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
pradeep.k pradeep.k
Regarding PHP Portlet Installation
January 21, 2008 5:15 AM
Answer

pradeep.k pradeep.k

Rank: New Member

Posts: 4

Join Date: March 28, 2006

Recent Posts

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
Michael Saechang
RE: Regarding PHP Portlet Installation
January 21, 2008 9:54 AM
Answer

Michael Saechang

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: November 19, 2007

Recent Posts

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
RE: Regarding PHP Portlet Installation
January 21, 2008 9:03 PM
Answer

pradeep.k pradeep.k

Rank: New Member

Posts: 4

Join Date: March 28, 2006

Recent Posts

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
Michael Saechang
RE: Regarding PHP Portlet Installation
January 22, 2008 4:24 PM
Answer

Michael Saechang

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: November 19, 2007

Recent Posts

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
RE: Regarding PHP Portlet Installation
January 23, 2008 7:59 PM
Answer

non non non

Rank: New Member

Posts: 1

Join Date: December 26, 2007

Recent Posts

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.
Michael Saechang
RE: Regarding PHP Portlet Installation
January 24, 2008 10:43 AM
Answer

Michael Saechang

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: November 19, 2007

Recent Posts

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
RE: Regarding PHP Portlet Installation
September 16, 2010 12:48 PM
Answer

Rahul Maru

Rank: New Member

Posts: 5

Join Date: August 3, 2010

Recent Posts

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
1<?php
2    echo 'Hello World';
3?>
Aaron Fuleki
RE: Regarding PHP Portlet Installation
September 19, 2012 8:22 AM
Answer

Aaron Fuleki

Rank: New Member

Posts: 1

Join Date: September 19, 2012

Recent Posts

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.