Closed (fixed)
Project:
Inline
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
30 Mar 2007 at 10:28 UTC
Updated:
2 May 2007 at 11:31 UTC
Jump to comment: Most recent file
Lines 387 and 388 in the inline module (v. 5.x-1.0):
if (isset($node->files[$filekeys[$match[2] - 1]]['filename'])) {
$filename = $node->files[$filekeys[$match[2] - 1]]['filename'];
['filename'] should be replaced by ->filename here, or otherwise you get a php error with php5
Noticed this problem in the 4.7 version of inline, but it seems to be unchanged throughout all more recent versions.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | inline_6.patch | 2.51 KB | sun |
Comments
Comment #1
pfaocleYep, got this one too. Had to go back to a 1.x-dev version from February.
Marking critical, as it completely broke sites with a PHP error.
Comment #2
sun@leafish_paul: Are you on php5, too?
I'm asking because I don't get this error on php4.
Comment #3
pfaocleYes: PHP Version 5.2.1
Comment #4
sunCould you please test this patch?
Comment #5
NaSPA1 commentedI'm also running php 5.2.1. It took care of the stdClass error - but the graphic is still not being displayed. :(
Radi
Comment #6
sun@Ivanput / leafish_paul: Did the patch work for you?
@NaSPA1: Images not showing up can have many more reasons. What do you mean by 'image not being displayed'? Is there a file link instead of an image? Did you check your maximum image dimensions in Inline settings?
Comment #7
pfaocleThe patch (against 1.0) at least sorts out the critical error, yes. The module still isn't inserting images, however, but I'm assuming this is a problem elsewhere. I'm busy, so haven't tested this thoroughly (or with, say, more than one attached image, auto-displayed). My settings seem present and correct: display image only, maximum 400,400.
If I turn 'image with link' on, I get:
<a href="http://paul.leafish.co.uk/system/files/greg_pattillo.jpg" class="inline-image-link" title="View: greg_pattillo.jpg"></a>in the source, but still no image. I'm using tags only, but auto-inserting images doesn't work either, after a quick test.
Sorry I've not delved any deeper (yet).
Comment #8
pfaocleAh, ignore me: this could be down to this issue.,, I applied the patch against the 1.0 release. I take it this fix is only in the 5.x-1.x-dev branch at the moment?
Will re-patch from the dev branch and report back when I can.
Comment #9
sunyay, I forgot that other issue, too ;)
If it's working now, just post a time-saving 'yes' and I'll push the button.
Comment #10
pfaocleOK, I reckon this one does fix the described issue here (I have re-tried with the 1.x-dev branch, and the critical PHP error is sorted) but I cannot really confirm as I think there are problems elsewhere with paths (I am using private files with the files directory set one directory above the 'Drupal root', ie
../files). I have posted a new issue here regarding this, and I'll try to follow that up this week.Comment #11
sunComment #12
(not verified) commented