AJAX Attribute Manager

Requester on new Product - AJAX Attribute Manager

Requester on new Product

by Denzel » Fri Nov 10, 2023 8:08 am

Hi Rainer,

got a requester "There was an error while retrieving the URL: "
Unbenannt2.PNG
Unbenannt2.PNG (4.62 KiB) Viewed 228 times
without any other infos and following console log:
Unbenannt.PNG
(complete address is: admin/attributeManager/attributeManager.php?pageAction=new_product&82918797214d95c07e7190effff7534b) after trying to add a new product. Can click the requester away and AttribManager Tab says "Product must be saved".
While editing an existing product, everything works fine.
I'm on Phoenix v1.0.8.20 and AttribManager v3.5.2. Any clues ?

Regards,
Denzel
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Requester on new Product

by raiwa » Fri Nov 10, 2023 8:23 am

Using attributes manager requires to save the product first.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Requester on new Product

by Denzel » Fri Nov 10, 2023 9:22 am

So this is a Feature not a Bug? Isn't there a way to suppress this requester?
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Requester on new Product

by raiwa » Fri Nov 10, 2023 11:21 am

It's neither a feature. It's required to have the product saved to get the ajax attributes manager working because it needs the product id and other data already to be available in the database.
In my test shop (Phoenix 1.0.8.20/PHP 8.0) I do not get the requester error.
Before I save a new product I get the expected message "Save Product before adding options" displayed in the Attributes Manager tab.
It must be something with your store.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Requester on new Product

by Denzel » Fri Nov 10, 2023 5:57 pm

raiwa wrote: In my test shop (Phoenix 1.0.8.20/PHP 8.0) I do not get the requester error.
That's what I would expect. So I'll try to find the reason. This Requester holds the whole browser.

Regards
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Requester on new Product

by Denzel » Sun Dec 10, 2023 3:45 pm

I now had some time and have suppressed the requester as follows:

Code: Select all

    function listen_injectSiteStart() {
      global $action;

      if (( Request::get_page() == 'catalog.php' ) && (isset($_GET['pID']))) {
       include('attributeManager/includes/attributeManagerHeader.inc.php');
      }

    }
inside sitewide admin hook. Manager works as expected. Requester gone :)
Denzel
Member
Posts: 87
Joined: Sat Oct 31, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Requester on new Product

by raiwa » Sun Dec 10, 2023 3:48 pm

Thanks. I'll add it to the next update.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Requester on new Product

by PiLLaO » Tue Apr 07, 2026 9:55 am

Denzel wrote:I now had some time and have suppressed the requester as follows:

Code: Select all

    function listen_injectSiteStart() {
      global $action;

      if (( Request::get_page() == 'catalog.php' ) && (isset($_GET['pID']))) {
       include('attributeManager/includes/attributeManagerHeader.inc.php');
      }

    }
inside sitewide admin hook. Manager works as expected. Requester gone :)
I have the same issue, solved adding && (isset($_GET['pID'])
PiLLaO
Contributor
Posts: 107
Joined: Thu Nov 05, 2020 9:28 pm
Phoenix Version: v1.1.0.6
Contact:

Re: Requester on new Product

by raiwa » Tue Apr 07, 2026 1:56 pm

Can you confirm that the errors are fixed with the 4.1 update.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Requester on new Product

by PiLLaO » Wed Apr 08, 2026 8:15 pm

On 4.1 still present

The hooks needs the Denzel fix and version need to be upgraded

Code: Select all

public $version = '3.4.0';
PiLLaO
Contributor
Posts: 107
Joined: Thu Nov 05, 2020 9:28 pm
Phoenix Version: v1.1.0.6
Contact: