• Closed by: Marek
  • Closed on: 29.10.17, 15:39
  • Reason: Closed
  • Comment: Glad to help!

Ticket #10826 - pk_flexmenu "add new item" not working

hello dear again, I have a problem with flexmenu settings, I try to create a new item, I can select the page which I’d like to add, then click save but the new item doesn’t show up..
Could you help me solve this ?
Thank you

Comments

Marek 21 Sep 2017, 15:53

Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office

Carmelo Piantadosi 22 Sep 2017, 10:32

hello dear, back office details updated, please let me know asap if you can help

Marek 22 Sep 2017, 11:58

Hi Carmelo.
Seems your server blocks menu requests. You can read how to fix that here (#2): https://alysum5.promokit.eu/documentation/#!/faq

Carmelo Piantadosi 22 Sep 2017, 12:07

[root@ns312262 17]# ls -la
total 748
drwxr-xr-x 25 comtopresel comtopresel 4096 Sep 19 14:33 .
drwxr-xr-x 36 comtopresel nobody 4096 Sep 19 14:20 ..
drwxr-xr-x 9 comtopresel comtopresel 4096 Sep 20 00:17 admin268wea6e0
drwxr-xr-x 6 comtopresel comtopresel 4096 Aug 28 14:03 app
drwxr-xr-x 2 comtopresel comtopresel 4096 Aug 28 14:03 bin
drwxrwxrwx 8 comtopresel comtopresel 4096 Aug 28 14:03 cache
drwxr-xr-x 24 comtopresel comtopresel 4096 Aug 28 14:03 classes
-rw-r–r– 1 comtopresel comtopresel 250394 Aug 28 13:51 composer.lock
drwxrwxrwx 4 comtopresel comtopresel 4096 Sep 21 11:21 config
drwxr-xr-x 4 comtopresel comtopresel 4096 Sep 21 11:09 controllers
drwxr-xr-x 4 comtopresel comtopresel 4096 Aug 28 14:03 docs
drwxrwxrwx 2 comtopresel comtopresel 4096 Sep 21 11:21 download
-rw-r–r– 1 comtopresel comtopresel 2454 Aug 28 13:51 error500.html
-rw-r–r– 1 comtopresel comtopresel 348 Aug 28 13:51 .eslintrc.json
-rw-r–r– 1 comtopresel comtopresel 4221 Sep 21 14:53 .htaccess
-rw-r–r– 1 comtopresel comtopresel 4733 Aug 28 13:51 images.inc.php
drwxrwxrwx 18 comtopresel comtopresel 4096 Sep 21 12:35 img
-rw-r–r– 1 comtopresel comtopresel 1082 Aug 28 13:51 index.php
-rw-r–r– 1 comtopresel comtopresel 1168 Aug 28 13:51 init.php
-rw-r–r– 1 comtopresel comtopresel 308 Apr 4 16:25 Install_PrestaShop.htm l
-rw-r–r– 1 comtopresel comtopresel 4941 Aug 28 13:51 INSTALL.txt
drwxr-xr-x 7 comtopresel comtopresel 4096 Aug 28 14:03 js
-rw-r–r– 1 comtopresel comtopresel 357285 Aug 28 13:53 LICENSES
drwxr-xr-x 2 comtopresel comtopresel 4096 Aug 28 14:03 localization
drwxrwxrwx 4 comtopresel comtopresel 4096 Sep 21 11:21 mails
drwxrwxrwx 95 comtopresel comtopresel 4096 Sep 21 14:58 modules
drwxr-xr-x 5 comtopresel comtopresel 4096 Aug 28 14:03 override
drwxr-xr-x 2 comtopresel comtopresel 4096 Aug 28 14:03 pdf
-rw-r–r– 1 comtopresel comtopresel 2670 Sep 19 14:31 robots.txt
drwxr-xr-x 5 comtopresel comtopresel 4096 Aug 28 14:03 src
drwxr-xr-x 5 comtopresel comtopresel 4096 Sep 21 11:36 themes
drwxr-xr-x 5 comtopresel comtopresel 4096 Aug 28 14:03 tools
drwxrwxrwx 4 comtopresel comtopresel 4096 Sep 21 11:21 translations
drwxrwxrwx 2 comtopresel comtopresel 4096 Sep 21 11:21 upload
drwxr-xr-x 35 comtopresel comtopresel 4096 Aug 28 14:03 vendor
drwxr-xr-x 2 comtopresel comtopresel 4096 Aug 28 14:03 webservice

Carmelo Piantadosi 22 Sep 2017, 12:08

as you can see here, modules folder is writable by group and so are all subfolders, we have set the permissions according to your install manual.. so something else is blocking .. how can I debug what is blocking the request?

Carmelo Piantadosi 22 Sep 2017, 12:11

this is part 1 about mod security conf on my hosting

Carmelo Piantadosi 22 Sep 2017, 12:11

here you can see part 2

Carmelo Piantadosi 22 Sep 2017, 12:11

and here part 3

Carmelo Piantadosi 22 Sep 2017, 12:12

do you have any idea about what cause this request blocking?

Marek 22 Sep 2017, 12:35

Here is direct link to the module ajax file on our server, as you can see it must return blank page
http://alysum5.promokit.eu/modules/pk_flexmenu/ajax/queries.php

and here is the sane on your server, as you can see it’s blocked by server and returns error 404
https://www.topresellerstore.com/17/modules/pk_flexmenu/ajax/queries.php

Unfortunately, I don’t see any settings on your screenshots which could be a cause of the issue. Could you please ask your hosting support?

Carmelo Piantadosi 22 Sep 2017, 14:15

I have set the folder “modules” permissions recursively to 755 and now it’s working perfectly.
However your guide tells us to set it to 755 according to the attached image..
So is it mispelled or is my hosting behaviour weird ?

Carmelo Piantadosi 22 Sep 2017, 14:15

sorry I mispelled too … second 755 was a 777

Marek 22 Sep 2017, 14:37

Thank you, I’ll fix that. So your issue is solved now, right?

Marek 22 Sep 2017, 20:50

I understand now. That is prestashop requirements to set 777 for modules folder.