Skip to main content
Topic: editing a post (Read 6955 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

editing a post

Everytime I try to edit one of my own posts here at elkarte.net in the custom theme board an error occurs:

QuoteInvalid argument supplied for foreach()

...and I can't make any changes.

Re: editing a post

Reply #1

hmm.... let me check the errors log
Bugs creator.
Features destroyer.
Template killer.

Re: editing a post

Reply #2

Try now, the specific one should be fixed.
Bugs creator.
Features destroyer.
Template killer.


Re: editing a post

Reply #4

I thought I fixed that one yesterday...
The attachments are there, just it is a bit messy with all the stuff regarding thumbnails and not.
Bugs creator.
Features destroyer.
Template killer.

Re: editing a post

Reply #5

Okay, how can I fix my post?  O:-)

Attachments not working

Reply #6

Xtest
Bugs creator.
Features destroyer.
Template killer.

Re: editing a post

Reply #7

Sorry, I have to debug it better and now I'm at work, I'll check this evening...
Bugs creator.
Features destroyer.
Template killer.

Re: Attachments not working

Reply #8

That's an old attachment never attached to this topic.  :o  But as it's only a test...  O:-)

Re: editing a post

Reply #9

No problem!

Re: Attachments not working

Reply #10

Any idea what happened to the attachments?

Re: Attachments not working

Reply #11

Would you mind attaching them to a new post here?
Do not use the inline function, just plain attachment.
Bugs creator.
Features destroyer.
Template killer.

Re: editing a post

Reply #12

Test not in line
Last Edit: November 24, 2017, 03:59:44 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: editing a post

Reply #13

Test inline
Images-Water-Wallpaper.jpg
that is it

try to edit
full modify
Last Edit: November 24, 2017, 04:00:49 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: Attachments not working

Reply #14

@Spuds I got it now: it was just yet another bug I introduced trying to fix the attachments... :-\

@Jorin now it really works, I have to say sorry, but the attachments are gone... :'(
The problem was I wrote a function that was assuming the $_SESSION data for the attachments was there, but in fact there was no session data because $_SESSION is used only when uploading a post, no during the editing.

 emanuele feels attachments is another piece of code that will benefit in 2.0 from a general overhaul and simplification, because at the moment is kind of totally messed (including the counter-intuitive $_POST['attach_del'])
Bugs creator.
Features destroyer.
Template killer.