Skip to main content
editing a post Started by Jorin · · Read 15129 times 0 Members and 1 Guest are viewing this topic. previous topic - next 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.