Author Topic: Cannot Attach Image To A Post  (Read 15814 times)

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Cannot Attach Image To A Post
« on: 2020 March 02 10:34:53 »
Further to this problem, and to assist Juan, I have been on the SMF forum support and they have come back with the following possible fixes for this problem:

---------------------------------
you issue is -- with fair certainty -- the issue noted in the first response.
Your system is choking on memory...  if the mod didn't help, then I suggest checking with your host.
Yes the memory was indeed the problem in my forums...no idea how but it was trying to allocate waaaay too much ram and after I adjusted it from its enormous amount down to 1024 for each forum the members can attach images to their posts again.

try installing https://custom.simplemachines.org/mods/index.php?mod=4111 and see if it helps.
----------------------------------

I have had to start a new thread as experimenting with the original thread and attaching various images has blown it up.....sorry!!
Dave

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Cannot Attach Image To A Post
« Reply #1 on: 2020 March 03 03:36:11 »
Hi Dave,

Thank you so much for your help ;)

I've just installed the mod and nothing has changed. I'm going to investigate server settings. Also moving this thread to bug reports, just to keep it more visible.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Re: Cannot Attach Image To A Post
« Reply #2 on: 2020 March 04 06:20:58 »
Hi Juan,

I ask the SMF forum as to what they changed to fix the problem and I got this reply:

In my case it was a server side issue. I ahve a dedicated server so went into WHM and change the php memory allocation from default (I think it was 256 or 512MB normally) to 1024. That did the trick.

 Somehow mine got upped to 2048 and it caused the server to do all sorts of things.


This reply contracts itself, so I am assuming that he set memory_limit = 1024M in the PHP ini file.
Also on a previous comment Your system is choking on memory, well I have been programming in PHP for the last 18 years and to me this comment is an absolute load of rubbish, my experiance with PHP is that you get an out of memory error if you try and allocated space when there is insufficent because memory_limit is set too low.

So as a suggestion can we proceed as follows:

1) Determine what the current value of the PHP ini setting memory_limit is and increase it to 1024M if necessary;

2) If 1) above does not fix the problem can you copy the Apache log files to a dropbox and I will work my way thru it to see if I can see the problem....maybe try to upload an image just prior to dumping the log file.

Dave

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Cannot Attach Image To A Post
« Reply #3 on: 2020 March 05 03:05:46 »
Hi Dave,

I have set memory_limit = 1024M in both php.ini and .user.ini, which as expected, has not changed anything.

Yesterday I installed myBB on a separate directory and ran a merge procedure to migrate from SMF to myBB. The merge was successful and everything was preserved perfectly... except that forum threads and posts are wrongly sorted. You have a post from 2010 following a post from 2018, then one of 2020, ... a complete mess.

I have no idea as to how to solve this problem. I want to migrate PixInsight Forum to a more contemporary and better maintained forum engine, but unfortunately I cannot find a reliable way to perform the required migration from SMF. At any rate, we cannot lose forum contents, since they form an important knowledge base and are the history of PixInsight. I'll keep looking for a solution.

Again thank you for your help and support.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Dave