If anyone can answer... November 09, 2016, 02:50:34 am I am trying to find what causes the following which happens immediately upon uninstall of my updated subforum addon package:QuoteThe elkarte.ahrasis.com page isn’t workingelkarte.ahrasis.com is currently unable to handle this request.HTTP ERROR 500After a while, the page return to normal. The above doesn't affect any other addon though, so I guess it is not a server fault.I also couldn't detect any relevant error in apache error log file or system log file.Could it be because I edited mysql database files via this addon? Any suggestion where should I look further into?
Re: If anyone can answer... Reply #1 – November 09, 2016, 07:00:24 am Just a guess, could it be an out of memory error? Are you running php fpm? You may try raising the php memory limit and restarting php. The other thought is a timeout issue. If the first doesn't work try raising the execution timeout.
Re: If anyone can answer... Reply #2 – November 09, 2016, 07:13:38 am You mean just when you click on "unisntall"?1.0 or 1.1?
Re: If anyone can answer... Reply #3 – November 09, 2016, 10:22:20 am 1.0, just after clicking uninstall and while going back to action=admin;area=packages.Quote from: badmonkey – November 09, 2016, 07:00:24 amJust a guess, could it be an out of memory error? Are you running php fpm? You may try raising the php memory limit and restarting php. The other thought is a timeout issue. If the first doesn't work try raising the execution timeout.I was running fast cgi. It could be, I will check all that out.
Re: If anyone can answer... Reply #4 – November 09, 2016, 11:16:24 am Quote from: ahrasis – November 09, 2016, 10:22:20 am1.0, just after clicking uninstall and while going back to action=admin;area=packages.Sorry for being pedantic, but... heh, I want to be sure. So you get it two times?Repeating the steps:1) enter admin > packages2) click "uninstall package" next to the package3) click "uninstall" button in the page that summarize the uninstall steps,4) confirmation page the addon has been unisntalled5) redirect to the packages list.From your sentence I understand it happens just after 3 and 5.Is that correct?
Re: If anyone can answer... Reply #5 – November 09, 2016, 11:36:03 am After step 4 uninstall confirmation button is clicked and going to step 5.
Re: If anyone can answer... Reply #6 – November 09, 2016, 07:15:05 pm I already checked the execution time (1000) and memory limit (2048M), thus, I think they are not the causes.My first thought was: while this addon restores database files to its original condition, deleted its own database files, and removes the hooks, the connection is somewhat / somewhere cut off, causing the above said error temporarily.Unfortunately, testing the same on WAMP, the addon uninstalls just fine, no said error in continuous multiple installs and uninstalls.Thus, I am coming back to my first thought or possibly, some server fault, on which the latter shows no clue, so far.
Re: If anyone can answer... Reply #7 – November 09, 2016, 08:22:53 pm Wow! No, those shouldn't be problematic. Lol!Would you like an install/uninstall test cycle on another server?
Re: If anyone can answer... Reply #8 – November 09, 2016, 10:39:04 pm That would be great. The package I am testing is in this post:http://www.elkarte.net/community/index.php?topic=2162.msg29377#msg29377This package is already in used in http://elkarte.sch.my with one of its subforum http://x-mans.sch.my.
Re: If anyone can answer... Reply #9 – November 10, 2016, 09:34:33 am Installation worked perfectly. MultiTenancy Configuration displays in the Forum tab in the ACP. At this point I seem to be experiencing a bug: the package doesn't show in the ACP Package Manager.
Re: If anyone can answer... Reply #10 – November 10, 2016, 07:23:25 pm Eh... that's strange?! The package is shown fine in my forum package browser. Is there any error logs?
Re: If anyone can answer... Reply #11 – November 10, 2016, 08:38:39 pm Indeed there are. Type of error: General2: Parameter 1 to Tenancy::BufferUrl() expected to be a reference, value givenIt's probably worth mentioning the server is running php7.
Re: If anyone can answer... Reply #12 – November 11, 2016, 03:50:40 am O_oI can't remember any Tenancy class in elk... maybe in some addon?
Re: If anyone can answer... Reply #13 – November 11, 2016, 07:34:42 am Woops. Sorry. I would assume that's a class in ahrasis' addon.