Website goes blank!
-
- Phoca Member
- Posts: 20
- Joined: 23 Mar 2009, 19:56
Re: Website goes blank!
I can give you a temp log in off line if you think that would help.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Website goes blank!
Then maybe the problem will be not in creating the PDF but in the system plugin (where Phoca PDF content plugin tries to find urls to PDF on your site and tries to change them to Phoca PDF - maybe there can be some problem with preg_replace functions )
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 20
- Joined: 23 Mar 2009, 19:56
Re: Website goes blank!
I have read some forum strings where preg_replace functions were modified.
viewtopic.php?f=37&t=5194&start=10
I tried these modifications without success.
I think it might be a conflict with Joomla 1.5.15. I can't upgrade the current site because it is live.
- Bob
viewtopic.php?f=37&t=5194&start=10
I tried these modifications without success.
I think it might be a conflict with Joomla 1.5.15. I can't upgrade the current site because it is live.
- Bob
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Website goes blank!
Hi, you should check
com_joomlawatch component on your site, seems like the error appears after this component:
com_joomlawatch component on your site, seems like the error appears after this component:
JanJDatabaseMySQL->query() /home/jennifer/public_html/components/com_joomlawatch/class.joomlawatch.visit.php:224
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 09 Aug 2010, 17:55
Re: Website goes blank!
I thought I would add my own experience.
Im a developer and we host about 50 joomla sites.
We use Civi CRM a fair bit and the other day a client complained that civi did not work.
I checked the server error logs but very unusually there was nothing.
The page when you went to the component of civi in the backend was failing to load, just a blank screen and very quickly.
I upgraded civi to latest and still no result then I installed on another dev site the latest civi..all was well.
Now we have a standard joomla package so I looked at the difference, and the only thing was phoca pdf.
I went in to the plugin manager and switched off phoca pdf plugin and everything worked fine.
I then added phoca pdf to the previously working site and it broke. Switched the plugin off and its fine.
There are no errors in the error log and no javascript errors.
May I suggest you install the latest civi to recreate this problem, when you get phoca working with civi you will have fixed a fair few conflicts and its a testable setup.
Kind regards
Phil
Softforge Ltd
Im a developer and we host about 50 joomla sites.
We use Civi CRM a fair bit and the other day a client complained that civi did not work.
I checked the server error logs but very unusually there was nothing.
The page when you went to the component of civi in the backend was failing to load, just a blank screen and very quickly.
I upgraded civi to latest and still no result then I installed on another dev site the latest civi..all was well.
Now we have a standard joomla package so I looked at the difference, and the only thing was phoca pdf.
I went in to the plugin manager and switched off phoca pdf plugin and everything worked fine.
I then added phoca pdf to the previously working site and it broke. Switched the plugin off and its fine.
There are no errors in the error log and no javascript errors.
May I suggest you install the latest civi to recreate this problem, when you get phoca working with civi you will have fixed a fair few conflicts and its a testable setup.
Kind regards
Phil
Softforge Ltd
-
- Phoca Newbie
- Posts: 3
- Joined: 09 Aug 2010, 17:55
Re: Website goes blank!
I wondered if there was any update on this issue, its by far the biggest problem in the pdf forum with over 4700 views and it has been running for a year, I did give a testable scenario.
Is the release of the 1.6 compatible version of phocapdf meaning that the 1.5 will cease to have any further development and is the scenario I described for 1.5 going to be tested in 1.6 (dont think there is a civi for 1.6 yet but sure it will follow soon.)
many thanks in advance.
Is the release of the 1.6 compatible version of phocapdf meaning that the 1.5 will cease to have any further development and is the scenario I described for 1.5 going to be tested in 1.6 (dont think there is a civi for 1.6 yet but sure it will follow soon.)
many thanks in advance.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Website goes blank!
Hi,
In 1.5 there is used system plugin to rename the standard links to Phoca PDF links (this can be a problem on some server). For now I have tested it over 100 servers and get no problem there, so still no idea what can cause such problem (maybe it is a memory problem).
In 1.6 no system plugin will be used because the standard PDF is removed from Joomla!, see:
https://www.phoca.cz/news/30-phoca-news/ ... 6-released
https://www.phoca.cz/documents/47-phoca- ... -and-usage
It means, in 1.6 there should not be such problem. (Maybe customizing article view can help for 1.5 too )
Jan
In 1.5 there is used system plugin to rename the standard links to Phoca PDF links (this can be a problem on some server). For now I have tested it over 100 servers and get no problem there, so still no idea what can cause such problem (maybe it is a memory problem).
In 1.6 no system plugin will be used because the standard PDF is removed from Joomla!, see:
https://www.phoca.cz/news/30-phoca-news/ ... 6-released
https://www.phoca.cz/documents/47-phoca- ... -and-usage
It means, in 1.6 there should not be such problem. (Maybe customizing article view can help for 1.5 too )
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 09 Aug 2010, 17:55
Solved Re: Website goes blank!
Solved
Well done by kloppo
I can confirm that replacing preg_replace with str_replace in plugins/system/phocapdfcontent.php does stop the site from going blank. I just tried it and when I switched the plugin on it went blank. I switched off and I could load civi. I then did the replacement and switched it on...civi worked, no blank page.
As to its effect on phoca and whether phoca pdf still works as should with this simple change I will need to test tomorrow.
But it does show that phoca is trying to "pdf" things it should not and that this is stopping the effect.
Well done by kloppo
I can confirm that replacing preg_replace with str_replace in plugins/system/phocapdfcontent.php does stop the site from going blank. I just tried it and when I switched the plugin on it went blank. I switched off and I could load civi. I then did the replacement and switched it on...civi worked, no blank page.
As to its effect on phoca and whether phoca pdf still works as should with this simple change I will need to test tomorrow.
But it does show that phoca is trying to "pdf" things it should not and that this is stopping the effect.
-
- Phoca Member
- Posts: 16
- Joined: 13 Oct 2010, 14:14
Re: Website goes blank!
For those that are still subscribed to this longstanding topic, I have noticed in my case that there is a clash between the no of menu items used in joomla core main menu and phoca pdf. Some have suggested 3rd party menu extensions are a problem, but my testing suggests that it occurs even with the joomla core main menu once the published menu items is above 37-40 menu items. I can reproduce this blank website bug with a new install of Joomla 1.5.20 + sample data and increasing no of main menu items.
See viewtopic.php?f=37&t=11155
I would be interested to see what happens with others that have this blank website bug when phoca pdf is enabled, if they could disable main menu completely or unpublish say half of the main menu items.
Unfortunately my skills don't allow me to unravel this bug further, hopefully others can help.
See viewtopic.php?f=37&t=11155
I would be interested to see what happens with others that have this blank website bug when phoca pdf is enabled, if they could disable main menu completely or unpublish say half of the main menu items.
Unfortunately my skills don't allow me to unravel this bug further, hopefully others can help.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Website goes blank!
Hi, the solution can be hardcoding phocapdf url links to the article, there are three places where it should be changed, then the plugin does not need to search and replace the code in your site so the site is loading faster and there should not be any problem with blank site.
So steps they should be done:
- search the links to pdf in article views and replace the format=pdf to format=phocapdf
- comment the search and replace function in Phoca PDF plugin.
Jan
So steps they should be done:
- search the links to pdf in article views and replace the format=pdf to format=phocapdf
- comment the search and replace function in Phoca PDF plugin.
Jan
If you find Phoca extensions useful, please support the project