Problem: Template with many Link's

Phoca PDF - creating PDF documents in Joomla! CMS
Wowa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Jun 2009, 14:13

Problem: Template with many Link's

Post by Wowa »

Hello all,

I've searched pretty long to find the error in my Template.
Now I found it, but I don't really understand it.

I've placed an SideCloud (with own html in an mod_custom module), with many links.
If I remove most of the links all works fine, but with over 20 links I only get a white page with active phocapdf plugin.

Does anybody know a workaround or any solution?

I'm currently placed the links in an IFrame, but this is not really an solution, because no searchmaschine will recognize it correctly.

My deepest apologize for my bad english.

Greets,
Wowa
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem: Template with many Link's

Post by Jan »

Hi, as Phoca PDF try to search all links to PDF and try to rename them so the Phoca PDF document will be displayed not standard PDF document, maybe there is no time for rename them all in your server (should be not problem if there are e.g. 20 links, but maybe :idea: ). Try to see your error log (or try to enable error reporting in php.ini if you are able to do)

Jan
If you find Phoca extensions useful, please support the project
Wowa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Jun 2009, 14:13

Re: Problem: Template with many Link's

Post by Wowa »

Hello again, sorry for the long break.

now i have checked the error-log, but i don't really understand the problem.

Code: Select all

PHP Warning:  realpath(): Unable to access /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/administrator/components/com_content/tables/content.php in /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/libraries/joomla/filesystem/path.php on line 248

PHP Warning:  realpath(): Unable to access /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/templates/TEMPLATNAME/html/com_content/article/ in /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/libraries/joomla/filesystem/path.php on line 247

PHP Warning:  realpath(): Unable to access /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/templates/TEMPLATNAME/html/com_content/article//default.php in /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/libraries/joomla/filesystem/path.php on line 248

[23-Jul-2009 17:41:10] PHP Notice:  Undefined property:  JSite::$_head in /srv/www/vhosts/~~~~~~~/httpdocs/Joomla/templates/TEMPLATNAME/index.php on line 188
why is it searching in the template_path for com components?
does somebody know this problem?
why does this problem only appear with to many links?

i hope somebody can help me.

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem: Template with many Link's

Post by Jan »

Hi, these errors are not related to Phoca PDF but they can take effect on PDF creating. Maybe. But maybe you if you use a lot of links, it can related to restriction wit preg replace call back, see:

viewtopic.php?f=37&t=5194&p=24254#p24254

I will do some test there and will see, if the ereg_replace will work better and if it will have all features Phoca PDF needs

Jan
If you find Phoca extensions useful, please support the project
bullet
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Sep 2009, 10:22

Re: Problem: Template with many Link's

Post by bullet »

first of all thnx Jan for the great work. Keep that up.
I was wondering about the links, too.

I have phoca pdf up-n-running on several sites j v1.5.x with php 5.2.10. Now on one site I had the issue with links (only two!!!) and once removed in the article pdf creation was fine. On another site I didn't have this issue, but it seamed to me that pdf was not created by phoca pdf but via joomla standard pdf ...

I am confused - any thoughts?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem: Template with many Link's

Post by Jan »

Hi, check if the plugin is enabled, check the links too, maybe Phoca PDF cannot find it and cannot overwrite the standard link :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply