Closed (fixed)
Project:
E-Publish
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jan 2010 at 21:45 UTC
Updated:
12 Mar 2010 at 02:30 UTC
Jump to comment: Most recent file
Drupal 6.15 & Epublish 6.x-1.4
Experienced the following warnings:
* warning: Parameter 1 to theme_epublish_topics() expected to be a reference, value given in /Library/WebServer/Documents/drupal-6.15/includes/theme.inc on line 617.
* warning: Parameter 1 to theme_epublish_pub_page() expected to be a reference, value given in /Library/WebServer/Documents/drupal-6.15/includes/theme.inc on line 617.
* warning: Parameter 1 to theme_epublish_edition_reference() expected to be a reference, value given in /Library/WebServer/Documents/drupal-6.15/includes/theme.inc on line 617.
Made some changes to the code to avoid warnings. It seems those functions don't need parameter 1 to be a reference. Please review.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | epublish-699424-3.patch | 2.28 KB | dooug |
| #2 | epublish-699424-2.patch | 1.92 KB | dooug |
| #1 | epublish-699424-1.patch | 1.75 KB | dooug |
Comments
Comment #1
dooug commentedHere is the patch:
Comment #2
dooug commentedOops! Ignore the last patch. Use this:
Comment #3
dooug commentedFound more warnings at /admin/epublish/add/topic
Applying this attached patch cleared up all the warnings like above. It also cleared up another issue I was having with the /epublish/# pages displaying as a blank white page. I still need to test some more, but from the looks of it, those parameters did not need to be passed by reference. Please review! I hope this helps someone.
Comment #4
jerdiggity commentedComment #5
dooug commentedI've been discovering many similar issues and have realized it is because I have Drupal installed with PHP 5.3. This is discussed in the following issue:
#360605: PHP 5.3 Compatibility
I am unsure what changes will be made to Drupal core. It probably would be good to review the patches I submitted, and get the module to be PHP 5.3 compatible.
Comment #6
jerdiggity commentedCommitted to HEAD / 6.x-1.5 released -- thank you very much for your help!
jeremy