Page 1 of 1

404 Error with Phoca PDF

Posted: 08 Jul 2010, 16:23
by grahamgscott
Thanks for you help resolving this issue.

I installed restaurant menu and pdf and pdf plug in following directions on your site.

All seems to be installed well:
  • Phoca menu is working
    Phoca PDF component is installed. Version 1.0.5.
    I click on Plugins in PhocoPDF Control Panel and see Restaurant Menu. Green checkmark indicates "Plugin is enabled in Plugin Manager".
I created joomla menu item for each restaurant list (eg., Appetizers). All displays correctly on the site.
When I click on the pdf icon, I receive a 404 error.

Other, possibly useful information:
Example Appetizers: URL is http://top-shelf.biz/top-shelf-appetizers.html -- When I select the pdf icon, the URL is http://top-shelf.biz/top-shelf-appetize ... t.phocapdf.

I noticed this is different than what happens on your demo site:
Example Daily Menu: URL is https://www.phoca.cz/restaurantmenudemo/en/daily-menu -- When I select the pdf icon, the URL is https://www.phoca.cz/restaurantmenudemo/ ... t=phocapdf.

SO I went back to my site (top-shelf.biz) and after selecting the phoca pdf icon and getting the 404 error, I replaced "component.phocapdf" with "component?format=phocapdf" in the address bar. ("http://top-shelf.biz/top-shelf-appetize ... t.phocapdf" became "http://top-shelf.biz/top-shelf-appetize ... t=phocapdf").

I got this error:
Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'phocaPDFREstaurantCallbackImage::phocaPDFCallbackImage', to be a valid callback in /homepages/12/d99393920/htdocs/top-shelf/plugins/phocapdf/restaurantmenu.php on line 122

Warning: Cannot modify header information - headers already sent by (output started at /homepages/12/d99393920/htdocs/top-shelf/plugins/phocapdf/restaurantmenu.php:122) in /homepages/12/d99393920/htdocs/top-shelf/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 5493
TCPDF ERROR: Some data has already been output to browser, can't send PDF file
I hope this helps you to help me.

Re: 404 Error with Phoca PDF

Posted: 13 Jul 2010, 15:24
by Jan
Hi, first try to disable SEF, if it is working without SEF. Then enable it and try to disable on the suffix (html). It should work without suffix.

Image: try to add display images to yes in parameters of the plugin, seems like there is some problem with output on your site :idea:

Jan

Re: 404 Error with Phoca PDF

Posted: 08 Mar 2012, 10:00
by d70photographie
Ok it works without the suffix, thank's

Re: 404 Error with Phoca PDF

Posted: 12 Mar 2012, 20:04
by Jan
Ok