404 Error with Phoca PDF

Phoca Restaurant Menu - restaurant menu manager
grahamgscott
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Jun 2010, 20:34

404 Error with Phoca PDF

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 404 Error with Phoca PDF

Post 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
If you find Phoca extensions useful, please support the project
d70photographie
Phoca Member
Phoca Member
Posts: 12
Joined: 18 Apr 2011, 07:38

Re: 404 Error with Phoca PDF

Post by d70photographie »

Ok it works without the suffix, thank's
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 404 Error with Phoca PDF

Post by Jan »

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