CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Pdf generating problem following upgrade
Pages: [1]

Author Topic: Pdf generating problem following upgrade  (Read 4490 times)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Pdf generating problem following upgrade
May 13, 2007, 06:39:23 am
When I go to make the mailing labels, I get his message:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/scars2/public_html/administrator/components/com_civicrm/civicrm/packages/ufpdf/fpdf.php on line 1145

Any ideas?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Pdf generating problem following upgrade
May 13, 2007, 11:13:29 am

elin:

this has been fixed in svn  (may 8th) and will be part of the next 1.7 release. Its a fairly trivial patch that u can apply on your code base if u want the fix immediately

@@ -1142,7 +1142,7 @@
        }
        //Pages root
        $this->offsets[1]=strlen($this->buffer);
-       $this->_out'1 0 obj');
+       $this->_out('1 0 obj');
        $this->_out('<</Type /Pages');
        $kids='/Kids [';
        for($i=0;$i<$nb;$i++)


lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Pdf generating problem following upgrade
May 24, 2007, 03:42:59 am
Thanks lobo, this is perfect.


davidbsco

  • Guest
Re: Pdf generating problem following upgrade
May 25, 2007, 11:51:58 am
I am getting the same error. I read the previous post but am not sure where to put the updated code.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/hshcleve/public_html/administrator/components/com_civicrm/civicrm/packages/ufpdf/fpdf.php on line 1145

I thought i had the final 1.7 version: Powered by CiviCRM 1.7.9379

Thank you,
David

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Pdf generating problem following upgrade
May 25, 2007, 03:27:53 pm
David - The fix for this hasn't been pushed out yet - it will be included in an updated 1.7 release shortly. If you want to fix the code in your own install - go to the file referenced in your error message and

replace this:
       $this->_out'1 0 obj');

with this:
       $this->_out('1 0 obj');
Protect your investment in CiviCRM by  becoming a Member!

davidbsco

  • Guest
Re: Pdf generating problem following upgrade
June 07, 2007, 05:48:52 am
Hello Dave,

I have been away and just saw this message. It is June 7th, so i am guessing that the update is available. I updated the code as shown. Now my browser ends up downloading index2.php. I suppose there is a pdf builder script that is missing on the server?

Thank you,
David

davidbsco

  • Guest
Re: Pdf generating problem following upgrade
June 07, 2007, 05:53:57 am
I now have the civicrm-1.7.9682 version. What would I need to do to bring CiviCRM 1.7.9379 up to date?

David

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Pdf generating problem following upgrade
June 07, 2007, 06:06:43 am
Unzip the file and just overwrite the exisitng ones. At least that is what was said on the developers list and I did it and it worked.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Pdf generating problem following upgrade
June 07, 2007, 11:57:57 am

if its just one specific file, you can overwrite it as elin mentions (make sure it is the right version etc)

If you want to upgrade to a new version on Joomla!, check these instructions:

http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrading+CiviCRM+on+Joomla%21

the db schema has not changed, so you can skip that part of the instructions.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Pdf generating problem following upgrade

This forum was archived on 2017-11-26.