Coder Social home page Coder Social logo

ascio-whmcs-plugin's People

Contributors

mlautenschlager-tc avatar mortenq avatar odin9000 avatar olkitu avatar rendermani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ascio-whmcs-plugin's Issues

Add namespaces

There are very common names, and to avoid conflicts with WHMCS and other modules I will add namespaces.

Few errors and Questions

Hello, I was using the old Plugin, but now due to a change in some plans, I tried the new one. I have some problems and also some questions.

  1. Is it possible to automatically get Domains/TLDs names from ascio inside WHMCS ( /admin/configdomains.php )?
  2. Is it possible to automatically get SSL certificates inside products?

Setting up the newest plugin I get: ( /admin/addonmodules.php?module=ascio )

Addons
An Error Occurred. Please check module coding.

Screenshot 2021-12-05 at 13 00 25

Inside ( admin/configaddonmods.php ) It doesn't show module information:

Screenshot 2021-12-05 at 13 03 36

issue with php 8.1

As asked by whmcs, we have updated the php version on the whmcs itself. Before php 7.4, now php 8.1
With php 8.1 i see few errors. Example:

 private function formatDate($xsDateTime) {
                if($xsDateTime == "0001-01-01T00:00:00") return false;
                $dateTokens = explode("T", $xsDateTime);
                if(count($dateTokens == 2)) {
                    return str_replace("-", "", $dateTokens[0]);
                }
                return false;
        }

here if $dateTokens is not an array, php 8.1 return a fatal error. And is no longer access to the domain page.
I have added a control over that array in order to temporary fix.
Please can you check if the rest of the implementation is php 8.1 ready?

ty

urgent problem with the latest whmcs (8.10) - conflict with .it class

Dear,

today we have updated to the latest whmcs (8.10) and here we see a conflict with your ascio-whmcs plugin, like this (this is the output of the cron script run in debug mode):

Domain Status Synchronisation
PHP Fatal error:  Cannot declare class it, because the name is already in use in /var/www/clients/client4/web130/web/modules/registrars/ascio/tlds/it/it.php on line 2

Fatal error: Cannot declare class it, because the name is already in use in /var/www/clients/client4/web130/web/modules/registrars/ascio/tlds/it/it.php on line 2
[WHMCS Application] ERROR: Whoops\Exception\ErrorException: Cannot declare class it, because the name is already in use in /var/www/clients/client4/web130/web/modules/registrars/ascio/tlds/it/it.php:2 Stack trace: #0 /var/www/clients/client4/web130/web/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError() #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\Exception\\ErrorException(code: 64): Cannot declare class it, because the name is already in use at /var/www/clients/client4/web130/web/modules/registrars/ascio/tlds/it/it.php:2)"} []
Whoops\Exception\ErrorException: Cannot declare class it, because the name is already in use in /var/www/clients/client4/web130/web/modules/registrars/ascio/tlds/it/it.php:2

#0 /var/www/clients/client4/web130/web/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError()
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
#2 {main}

in my opinion this is because you don't use namespace on your code, so that a it class conflict with an already present on whmcs itself another part of the plugin.
Please can you give it a check asap?

thank you

WHMCS API

Why are you using the API externally instead of using internal calls?
Internal calls don't even need auth, so major win in security and configuration among other things.

Are you open to a PR for this? If so I will contribute with it :)

Separate out libphonenumber-for-PHP

Hi there,

I'm guessing that the libphonenumber-for-PHP subdirectory was created to solve the same problem that I have, namely that WHMCS doesn't present "clean" e164-formatted numbers required by EPP.

I'd like to avoid reinventing the wheel, and reuse your code in the CentralNic WHMCS module. There are a couple of things preventing that though:

  1. the licensing status of this repository is unclear, I don't see a license file or anything in the README
  2. would it be possible to create a separate Git repo for the libphonenumber-for-PHP subdirectory that I can add as a submodule?

Thanks!

adding polling message id on the whmcs logs

Is it possible to add also on your main branch the message id of the polling on the whmcs logs?
I did something like this:

Tools::log("DomainId: " . $domainId." not found in the WHMCS-Database: " .$order->order->Type. ", Domain: ".$domainName.", Order-Status: ".$orderStatus."\n ".$errors.", Message-id: ".$messageId);

on row 253 of lib/Request.php

in order to see, faster, what is the message polling id that create problem. If any.
ty

Error after upgrade to WHMCS 7.5 - PHP 7.2 - Ioncube 10.2.0

After the upgrade, I get this error:

[php7:notice] [pid 32755] [WHMCS Application] ERROR: ArgumentCountError: Too few arguments to function Request::searchDomain(), 0 passed in /public/modules/registrars/ascio/ascio.php on line 52 and exactly 1 expected in /public/modules/registrars/ascio/lib/Request.php:134 Stack trace: #0 /public/modules/registrars/ascio/ascio.php(52): Request->searchDomain() #1 /public/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): ascio_GetNameservers(Array) #2 /public/vendor/whmcs/whmcs-foundation/lib/Module/Registrar.php(0): WHMCS\Module\AbstractModule->call('GetNameservers', Array) #3 /public/vendor/whmcs/whmcs-foundation/lib/Domains.php(0): WHMCS\Module\Registrar->call('GetNameservers', Array) #4 /public/backend/clientsdomains.php(0): WHMCS\Domains->moduleCall('GetNameservers') #5 {main} {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function Request::searchDomain(), 0 passed in /public/modules/registrars/ascio/ascio.php on line 52 and exactly 1 expected at /public/modules/registrars/ascio/lib/Request.php:134)"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.