Joomla 3.5.1, Phoca 3.0.2 error

Phoca PDF - creating PDF documents in Joomla! CMS
meresda
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2016, 14:09

Joomla 3.5.1, Phoca 3.0.2 error

Post by meresda »

When I updated my site to 3.5.1, Phoca PDF broke. The error was;

Code: Select all

PHP Fatal error:  require_once(): Failed opening required '/var/www/html/libraries/joomla/document/html/html.php
It appears the new path is libraries/joomla/document/html.php. I updated libraries/joomla/pdf/pdf.php with this new path and it works fine. Anyone else experience this or is my installation messed up.

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

Re: Joomla 3.5.1, Phoca 3.0.2 error

Post by Jan »

Hi, can you paste here whole error message, include the error line?

Thank you, Jan
If you find Phoca extensions useful, please support the project
meresda
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2016, 14:09

Re: Joomla 3.5.1, Phoca 3.0.2 error

Post by meresda »

Hi Jan,
Here is the complete error.

Code: Select all

[Wed Jun 15 09:51:21.805857 2016] [:error] [pid 16206] [client 172.22.10.61:62961] PHP Warning:  require_once(/var/www/html/libraries/joomla/document/html/html.php): failed to open stream: No such file or directory in /var/www/html/libraries/joomla/document/pdf/pdf.php on line 17, referer: http://172.17.0.58/index.php/lccircuits/835

Code: Select all

[Wed Jun 15 09:51:21.805894 2016] [:error] [pid 16206] [client 172.22.10.61:62961] PHP Fatal error:  require_once(): Failed opening required '/var/www/html/libraries/joomla/document/html/html.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/libraries/joomla/document/pdf/pdf.php on line 17, referer: http://172.17.0.58/index.php/lccircuits/835
Thanks,
Mike
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 3.5.1, Phoca 3.0.2 error

Post by Jan »

Hi, which version of PHP you run? Can you paste here the code of the file:
/var/www/html/libraries/joomla/document/pdf/pdf.php

from the beginning e.g. to line 20

There is no direction to load: libraries/joomla/document/html/html.php ???

Jan
If you find Phoca extensions useful, please support the project
meresda
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jun 2016, 14:09

Re: Joomla 3.5.1, Phoca 3.0.2 error

Post by meresda »

Hi Jan,
There is no direction to load: libraries/joomla/document/html/html.php ???
My problem is that my Joomla install does not have this file at this location. It is located at joomla/document/html.php. I downloaded Joomla_3.5.1-Stable-Full_Package and it is the same. No html.php in the html folder, just in the document folder.

The rest of the information you asked for...

PHP Version 5.4.16

Here is /var/www/html/libraries/joomla/document/pdf/pdf.php. Note, I changed the require once path to make it work.

Code: Select all

<?php
/**
 * @package             Joomla.Framework
 * @subpackage  Document
 * @copyright   Copyright (C) 2005 - 2012 Rob Clayburn
 * @license             GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

require_once(JPATH_LIBRARIES .'/joomla/document/html.php');

/**
 * DocumentPDF class, provides an easy interface to parse and display a pdf document
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 3.5.1, Phoca 3.0.2 error

Post by Jan »

Hi, yes, Joomla! does not have any such file.

What is the orgininal code of your pdf.php file?

The standard one does not have any including of the file html.php so this is why I ask for your original pdf.php file - if it is the same like the one in ZIP package.

Is the code the same like by standard file?
(The standard does not ask for html.php)

Code: Select all

<?php
/*
 * @package		Joomla.Framework
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 *
 * @component Phoca Component
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
 */
defined('JPATH_PLATFORM') or die;
jimport('joomla.application.module.helper');
jimport('joomla.document.document');
jimport('joomla.filesystem.file');

class JDocumentPdf extends JDocument
{ 
	// Document
If you find Phoca extensions useful, please support the project
Post Reply