Bug 579355 - Can't print to HP printer: Bad PPD - hpPrinterLanguage not found
Summary: Can't print to HP printer: Bad PPD - hpPrinterLanguage not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 12
Hardware: All
OS: Linux
urgent
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 573891 579307 579337 579731 579760 581582 583841 584212 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-04 14:23 UTC by amturnip
Modified: 2010-05-18 21:56 UTC (History)
22 users (show)

Fixed In Version: hplip-3.10.2-4.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-13 01:39:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
cups/error_log excerpt (11.92 KB, application/octet-stream)
2010-04-04 14:23 UTC, amturnip
no flags Details
Output of the print problem troubleshooter. (173.29 KB, text/plain)
2010-04-16 00:03 UTC, Mitch Davis
no flags Details

Description amturnip 2010-04-04 14:23:12 UTC
Created attachment 404400 [details]
cups/error_log excerpt

Description of problem:

Can't print with the HP printer anymore.

Version-Release number of selected component (if applicable):

hpijs-3.10.2-2.fc12.x86_64
hplip-3.10.2-2.fc12.x86_64
hplip-common-3.10.2-2.fc12.x86_64
hplip-gui-3.10.2-2.fc12.x86_64
hplip-libs-3.10.2-2.fc12.x86_64

Printer: HP-OfficeJet-6500-e709n


How reproducible:

Consistently.

Steps to Reproduce:

1. echo "Thank you for smoking in the stairwell" | lp -d HP-OfficeJet-6500-e709n-wireless


Actual results:

a) Dialog box: "Print Error" "There was a problem processing document `(stdin)'"

b) In /var/log/messages:

Apr  4 10:14:58 localhost hpcups[3050]: prnt/hpcups/HPCupsFilter.cpp 361: DEBUG: Bad PPD - hpPrinterLanguage not found
Apr  4 10:14:58 localhost hp[3051]: prnt/backend/hp.c 847: ERROR: null print job total=0

c) In /var/log/cups/error_log:
E [04/Apr/2010:10:14:58 -0400] [Job 84] Job stopped due to filter errors; please consult the error_log file for details.
(etc., etc.; attached)


Expected results:

Printout.


Additional info:

Was printing fine up through hplip-3.9.8. The update to 3.10 coincided with the onset of the inability to print and the appearance of the message in /var/log/messages.  Another computer still using 3.9.8 can still print.

Comment 1 J. David Beutel 2010-04-05 04:20:37 UTC
I just had the same problem.  I'm not sure which update caused it.  Deleting and recreating the printer seemed to fix it, though.

Comment 2 Jan "Yenya" Kasprzak 2010-04-05 10:23:42 UTC
Another "me too" - my printer is HP Color LaserJet CM1312nfi MFP.
Deleting the queue and configuring it again fixes the problem.
In addition to that, 3.10 prints incorrectly on my printer, as described in bug #579461. Downgrading to 3.9.8-28 fixes the problem.

Comment 3 Jay Rubenstein 2010-04-06 13:34:28 UTC
you can also correct this by using http://localhost:631/admin going into maintenance mode and reloading the the drivers. I created a new printer queue (which was unnecessary) and noticed the difference in the drivers (see below). After modifying the original printer queue my stuck jobs worked fine.  

http://localhost:631/printers
--------------------------------
▼ Queue Name ▼	Description	Location	Make and Model	Status
HP-Officejet-j4680	HP Officejet j4680		HP Officejet j4680 Series, hpcups 3.9.8	Idle - "ready to print"
HP-Officejet-j4680-2	HP Officejet j4680		HP Officejet j4680 Series, hpcups 3.10.2	Idle


Cups printer Modification page
----------------------------------------------------
http://localhost:631/admin
Modify HP-Officejet-j4680
Description: 	HP Officejet j4680
Location: 	
Connection: 	hp:/net/Officejet_J4680_series?ip=xxx.xxx.xxx.xxx
Sharing: 	Share This Printer
Make: 	HP
Model: 	(drop down box) 
        HP Officejet j4680 Series HPCups 3.10.2 (en)



Or Provide a PPD File:

Comment 4 Jiri Popelka 2010-04-06 14:30:08 UTC
*** Bug 579731 has been marked as a duplicate of this bug. ***

Comment 5 Tim Waugh 2010-04-06 14:44:21 UTC
OK, I see what's going on here.  It's a complete lack of backwards compatibility in hpcups.

I think the solution will be to selectively re-create PPD files for hpcups which do not have this required attribute, new in 3.10.2, and to do that in the %post scriptlet of the hpijs package.

What's needed is to loop through the existing PPD files in /etc/cups/ppd/, extract the NickName attribute, see if it contains the word "hpcups", and if so see if the PPD contains the hpPrinterLanguage attribute.

If it doesn't, we need to look up the driver URI from the output of 'lpinfo -h /var/run/cups/cups.sock --include-schemes=drv -m', and use lpadmin's -m option to set a new PPD from the same URI.  I think CUPS will take care of keeping the existing option defaults.

Comment 6 Dimitri Papadopoulos 2010-04-06 19:46:28 UTC
Same here:

Printing so my HP PhotoSmart C3950 printer stopped working after upgrading to the latest HP 3.10.2 drivers.

I was able to get it working again by specifying the driver again:
HP Photosmart c5300 Series, hpcups 3.10.2

Comment 7 Jiri Popelka 2010-04-07 10:32:39 UTC
*** Bug 579337 has been marked as a duplicate of this bug. ***

Comment 9 Tim Waugh 2010-04-07 13:54:12 UTC
Wow, they even broke backwards compatibility for page size names.  Impressive...

Comment 10 Tim Waugh 2010-04-07 14:27:08 UTC
*** Bug 573891 has been marked as a duplicate of this bug. ***

Comment 11 Tim Waugh 2010-04-07 14:38:26 UTC
Please try this new build of hplip: hplip-3.10.2-3.fc12

http://koji.fedoraproject.org/koji/buildinfo?buildID=165851

Download the packages for the architecture you are using and then run this
command as root:

yum update --nogpgcheck hplip*.rpm hpijs*.rpm libsane-hpaio*.rpm

Then try printing.  Hopefully this will avoid the need for anyone to have to re-create all their printer queues.

Comment 12 Tim Waugh 2010-04-07 14:39:01 UTC
*** Bug 579760 has been marked as a duplicate of this bug. ***

Comment 13 Tim Waugh 2010-04-07 14:39:23 UTC
*** Bug 579307 has been marked as a duplicate of this bug. ***

Comment 14 Fedora Update System 2010-04-07 14:42:08 UTC
hplip-3.10.2-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/hplip-3.10.2-3.fc12

Comment 15 Tim Waugh 2010-04-07 15:37:13 UTC
Oops, found a small bug in the page size correction -- it should use lpadmin instead of lpoptions.  Fixed...

Comment 16 Fedora Update System 2010-04-07 15:56:35 UTC
hplip-3.10.2-5.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/hplip-3.10.2-5.fc13

Comment 17 Fedora Update System 2010-04-07 15:57:58 UTC
hplip-3.10.2-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/hplip-3.10.2-3.fc11

Comment 19 Fedora Update System 2010-04-09 01:32:21 UTC
hplip-3.10.2-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/hplip-3.10.2-4.fc12

Comment 20 Fedora Update System 2010-04-09 01:42:08 UTC
hplip-3.10.2-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/hplip-3.10.2-3.fc11

Comment 21 Paul Batkowski 2010-04-09 20:26:56 UTC
Confirmed that upgrading the packages to http://admin.fedoraproject.org/updates/hplip-3.10.2-4.fc12 indeed resolve my printing issue w/o needing to recreate my printer queue on Fedora 12.

Comment 22 Jon Burgess 2010-04-11 17:33:36 UTC
I installed the packages from updates-testing above but it looks like only one of the queues got updated. The NickName of several others ends in hpcups but did not match?

# /usr/bin/hpcups-update-ppds
Examining EPSON_Stylus_Photo_R220_USB_2
NickName is: Epson Stylus Photo R220 - CUPS+Gutenprint v5.2.5
Examining HP-LaserJet-M1522nf-MFP-Fax-2
NickName is: HP Fax2 hpcups
Examining HP_LaserJet_M1522nf_MFP_fax
NickName is: HP Fax2 hpcups
Examining HP_LaserJet_M1522nf_MFP_
NickName is: HP LaserJet m1522nf MFP Foomatic/hpijs, hpijs 2.8.7
Examining HP_LaserJet_M1522nf_MFP
NickName is: HP LaserJet M1522 MFP Series Postscript (recommended)
Examining HP-LaserJet-M1522nf-MFP
NickName is: HP LaserJet m1522nf MFP pcl3, hpcups 3.9.8, requires proprietary plugin
hpcups: true
No hpPrinterLanguage attribute
Stripped NickName: HP LaserJet m1522nf MFP pcl3
Match found, URI: drv:///hp/hpcups.drv/hp-laserjet_m1522nf_mfp-pcl3.ppd
PageSize is A4
PPD regenerated
PageSize restored to A4
# ls -lt /etc/cups/ppd/*.ppd
-rw-r--r--. 1 root root  14857 2010-04-11 18:19 /etc/cups/ppd/HP-LaserJet-M1522nf-MFP.ppd
-rw-r--r--. 1 root root 800996 2010-03-04 21:11 /etc/cups/ppd/EPSON_Stylus_Photo_R220_USB_2.ppd
-rw-r--r--. 1 root root   2891 2010-01-12 23:09 /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_fax.ppd
-rw-r--r--. 1 root root  30472 2010-01-12 23:09 /etc/cups/ppd/HP_LaserJet_M1522nf_MFP.ppd
-rw-r--r--. 1 root root   2883 2010-01-12 21:53 /etc/cups/ppd/HP-LaserJet-M1522nf-MFP-Fax-2.ppd
-rw-r--r--. 1 root root  17878 2010-01-12 19:54 /etc/cups/ppd/HP_LaserJet_M1522nf_MFP_.ppd

# rpm -qa hpijs hplip\* libsane-hpaio
hplip-common-3.10.2-4.fc12.x86_64
hplip-gui-3.10.2-4.fc12.x86_64
libsane-hpaio-3.10.2-4.fc12.x86_64
hplip-libs-3.10.2-4.fc12.x86_64
hplip-3.10.2-4.fc12.x86_64
hpijs-3.10.2-4.fc12.x86_64

Comment 23 Tim Waugh 2010-04-12 09:47:14 UTC
(In reply to comment #22)
> I installed the packages from updates-testing above but it looks like only one
> of the queues got updated. The NickName of several others ends in hpcups but
> did not match?

You mean these?

> NickName is: HP Fax2 hpcups
> NickName is: HP Fax2 hpcups

Those queues should work without needing to be re-created.  Can you confirm whether or not they do?

Comment 24 Jon Burgess 2010-04-12 19:22:05 UTC
(In reply to comment #23)
> (In reply to comment #22)
> > I installed the packages from updates-testing above but it looks like only one
> > of the queues got updated. The NickName of several others ends in hpcups but
> > did not match?
> 
> You mean these?
> 
> > NickName is: HP Fax2 hpcups
> > NickName is: HP Fax2 hpcups
> 
> Those queues should work without needing to be re-created.  Can you confirm
> whether or not they do?    

You are right, it seems they do work OK. I was just surprised to only see one queue needed to be updated.

Comment 25 Tim Waugh 2010-04-12 21:34:28 UTC
*** Bug 581582 has been marked as a duplicate of this bug. ***

Comment 26 Gianluca Cecchi 2010-04-12 22:17:01 UTC
I confirm that I had the same problem after upgrade from 3.9.8-28 to 3.10.2-2 on my F12 x86_64 system. I didn't remove my printer after the error.
Updating via updates-testing repo right now and going so to 3.10.2-4 resolves my problem only retrying to print to the same pre-defined printer.
My printer is a deskjet HP PSC 1210.
thanks,
Gianluca

Comment 27 Fedora Update System 2010-04-13 01:38:57 UTC
hplip-3.10.2-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 28 Fedora Update System 2010-04-13 01:57:06 UTC
hplip-3.10.2-8.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 29 Mitch Davis 2010-04-15 00:43:45 UTC
My C4400 under F12 stopped working a few days ago due to the compatibility problem.  I was able to get things working by following the instructions in comment 3.

I have since updated to hplip-3.10.2-4.fc12, and printing is broken again.  In the CUPS web interface, it says my current driver is "HP Photosmart C4400 series", but now there's no C4400 in the list of supported drivers.  (There is a "HP Photosmart c4500 Series, hpcups 3.10.2 (en)" (sic), but no c4400 or C4400).

I have files called /etc/cups/ppd/Photosmart-C4400-series.ppd and /var/cache/cups/Photosmart-C4400-series.ipp, but no other file on my computer has "c4400" or "C4400" in the name.

Can someone please advise me how to get printing working again?

Comment 30 Tim Waugh 2010-04-15 11:55:21 UTC
(In reply to comment #29)
> Can someone please advise me how to get printing working again?    

So I just took a look at the list of printers on F-12 immediately after updating the hplip packages and 'Photosmart C4400' was indeed missing from the list, as were many more models.  But looking again later it *is* there.  It certainly *ought* to be there; it is listed in hpcups.drv from the hpijs package.

Please try running:
  su -c hpcups-update-ppds

What output do you get?

I'm wondering if CUPS is somehow misreporting the available models in some situations.

Comment 31 Mitch Davis 2010-04-16 00:03:03 UTC
I downgraded (as I had something I urgently had to print), but I just upgraded again, and restarted cups.

I just had a look in the web interface.  The driver list has these as the first two entries:

  Current Driver - HP Photosmart c4400 Series, hpcups 3.10.2 (en)
  HP Photosmart c4400 Series, hpcups 3.10.2 (en)

Then there's the usual list of printers, including the Photosmart ones that were missing yesterday, but it jumps from c4380 to c4500.  It could be that the c4400 has been taken to the top of the list as a courtesy by the software, or it could be that c4400 is missing, and is only present at the top of the list as a remnant of an earlier setup.

The result of hpcups-update-ppds is:

Examining Photosmart-C4400-series
NickName is: HP Photosmart c4400 Series, hpcups 3.10.2
hpcups: true

Note, the printer description used to be called C4400 (capital) but now seems to have gone lower case (c4400).  Maybe that's part of the problem.  As a matter of style, the list is now inconsistent (for example, has two "Photosmart P1000"s, and one "Photosmart p1000"s).

I'm still not able to print.  Disclosure: I have a low ink warning on the black cartridge.  I agree with Craig Routledge in bug 579760: Low ink should not stop the printing, just print the thing!

I ran the print problem troubleshooter, and I'll attach the output to this bug.

Thanks for your help!

Comment 32 Mitch Davis 2010-04-16 00:03:43 UTC
Created attachment 406967 [details]
Output of the print problem troubleshooter.

Comment 33 Mitch Davis 2010-04-16 00:17:09 UTC
I had a look through the troubleshooter output, the only thing I could find is:

'D [16/Apr/2010:09:50:24 +1000] [Job 35] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other',

Comment 35 Tim Waugh 2010-04-16 10:47:08 UTC
(In reply to comment #31)
> The result of hpcups-update-ppds is:
> 
> Examining Photosmart-C4400-series
> NickName is: HP Photosmart c4400 Series, hpcups 3.10.2
> hpcups: true

If the PPD needed upgrading it would say "No hpPrinterLanguage attribute".  I think you are seeing a different problem -- would you mind filing a new bug report please?

Comment 37 Tim Waugh 2010-04-20 08:26:15 UTC
*** Bug 583841 has been marked as a duplicate of this bug. ***

Comment 38 Jiri Popelka 2010-04-21 10:19:09 UTC
*** Bug 584212 has been marked as a duplicate of this bug. ***

Comment 39 Fedora Update System 2010-05-18 21:56:23 UTC
hplip-3.10.2-4.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.