Skip to main content
Topic: [1.1] White Page manage attachments (Read 1976 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[1.1] White Page manage attachments

index.php?action=admin;area=manageattachments;sa=attachpaths; gives a white page, at least on this site..
Related Error log:
Notice: The parent constructor was not called: the object is in an invalid state
Code: [Select]
File: .../sources/subs/ManageAttachments.subs.php
Line: 1278
Thorsten "TE" Eurich
------------------------

Re: [1.1] White Page manage attachments

Reply #1

PHP bug: https://bugs.php.net/bug.php?id=55701
But I guess we have to have that one fixed...

Not sure how this call is any different from the several others, except it may hit an empty directory... but addons would do as well... :-\
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1] White Page manage attachments

Reply #2

ah ok, found a solution here http://stackoverflow.com/questions/22320103/globiterator-no-file-found-php-5-3-7-error
I haven't tested yet but it should work:
 
Code: [Select]
	$num_files = $glob->count();
replace with:
Code: [Select]
	$num_files = count(iterator_to_array($glob));

I'd send a PR but my DEV client is currently badly broken.. I'll try to rebuild the box during the next days, it's about time for a comeback :)
Thorsten "TE" Eurich
------------------------

Re: [1.1] White Page manage attachments

Reply #3

No problem I have a series of commits pending (I tend to commit, upload the file here, wait to push), I'll add that too and upload the file this afternoon. ;D
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1] White Page manage attachments

Reply #4

da08aa00a39507909e09305c1d2f7e085980ce6e
Bugs creator.
Features destroyer.
Template killer.


Re: [1.1] White Page manage attachments

Reply #6

The commit hash. (i.e. A unique hash that identifies a particular commit, in that case the commit that fixed the issue. No link because it's still on my computer, but https://github.com/elkarte/Elkarte/commit/da08aa00a39507909e09305c1d2f7e085980ce6e will show it... leter. :P)
Bugs creator.
Features destroyer.
Template killer.