Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Undefined Error while generating default #21

Closed
enterth opened this issue Jul 7, 2019 · 5 comments
Closed

[BUG] - Undefined Error while generating default #21

enterth opened this issue Jul 7, 2019 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@enterth
Copy link

enterth commented Jul 7, 2019

undefined error while trying to generate default

  1. Setup -> Products/Services -> Products/Services -> Create New Product -> Module Settings -> Configurable Options -> Generate Default
  2. Setup -> Products/Services -> Products/Services -> Create New Product -> Module Settings -> Custom Fields -> Generate Default

WHMCS version : 7.7.1

  • PHP Version 7.0/7.3
  • Browser FIREFOX v.67.0.4 (64 bits), Chrome v.75.0.3770.100
@enterth enterth added the bug Something isn't working label Jul 7, 2019
@immdraselkhan
Copy link

Did you try with PHP 7.2?

@ddymko
Copy link
Contributor

ddymko commented Jul 7, 2019

@xrazor2k

WHMCS-Vultr supports PHP 7.1.x or higher. We will take a look into the reported issue for you.

@afady
Copy link
Contributor

afady commented Jul 8, 2019

Hi @xrazor2k - I haven’t been able to reproduce your issue. When creating a new product, under the module settings tab, make sure to enter your API key in the field labeled Your API Key then press the Save Changes button. The Generate default buttons should work after saving.

If you are still having trouble generating the default options, please make sure you’re using PHP 7.1 or greater and provide a screenshot of the error and any other details that may be relevant to the issue so that we can get this taken care of.

@ddymko ddymko added question Further information is requested and removed bug Something isn't working labels Jul 8, 2019
@enterth
Copy link
Author

enterth commented Jul 9, 2019

Hi @xrazor2k - I haven’t been able to reproduce your issue. When creating a new product, under the module settings tab, make sure to enter your API key in the field labeled Your API Key then press the Save Changes button. The Generate default buttons should work after saving.

If you are still having trouble generating the default options, please make sure you’re using PHP 7.1 or greater and provide a screenshot of the error and any other details that may be relevant to the issue so that we can get this taken care of.

Thanks for your fast reply. I have saved & Try to generate again then i still have this error.

Here is the screenshots

Web Browser
screenshot_bug_whmcs

Chrome Console :
screenshot_bug_whmcs_console

Firefox Console :
screenshot_bug_whmcs_console_ff

@afady
Copy link
Contributor

afady commented Jul 9, 2019

@xrazor2k

Thank you for posting those screenshots. We reviewed the module code and we still aren't sure exactly how you're getting an undefined error.

Could you please check the Network tab in the Chrome developer tools. When you click either one of the generate buttons, you should see an AJAX request to configproducts.php?action=edit&id=YOUR_PRODUCT_ID&tab=3 - could you post the response to that request? I have attached an example screenshot below:

Screen Shot 2019-07-09 at 3 03 34 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants