Giter Site home page Giter Site logo

reloadly / sample-airtime-topup-platform Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 24.0 4.08 MB

Open source airtime and data top-up platform for distributors and e-com sites to use as white label. With complete Admin/Reseller/Customer side. Fully loaded with the Reloadly API. Easy to use and can be customized/white-labeled with any company design.

License: MIT License

Shell 0.20% PHP 38.51% Dockerfile 0.52% Makefile 0.17% Vue 13.57% Blade 47.04%

sample-airtime-topup-platform's People

Contributors

dependabot[bot] avatar junaidmaqbutt avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

sample-airtime-topup-platform's Issues

ERROR: DOMDocument::loadXML(): Argument #1 ($source) must be of type string, array given

Hi everyone.
I followed the instructions on the link:
https://www.youtube.com/watch?v=pBJ9KrZcGeA&feature=youtu.be

But when I connect, I get the following error:
[2023-11-18 14:17:38] production.ERROR: DOMDocument::loadXML(): Argument #1 ($source) must be of type string, array given {"userId":1, "exception":"[object] (TypeError(code: 0): DOMDocument::loadXML(): Argument #1 ($source) must be of type string, array given at /home/y9jyedslggq9/public_html/vendor/otifsolutions/curl-handler/src/Helpers/Helper.php:33)
[stacktrace]

I installed it twice with the same result. What mistake could I have made?

SQLSTATE[HY000] [2002] php_network_getaddresses

Hello
How to solve this error?


Make (linux): Installing ReloadlyTopupProject...

[+] Building 6.0s (41/41) FINISHED
=> [mariadb internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 306B 0.0s
=> [mariadb internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> [mariadb internal] load metadata for docker.io/library/mariadb:latest 2.1s
=> [mariadb 1/3] FROM docker.io/library/mariadb:latest@sha256:5d851e999b84625ef9810589e832686cae58453452698ee69e2980041e626eb2 0.0s
=> [mariadb internal] load build context 0.1s
=> => transferring context: 28B 0.0s
=> CACHED [mariadb 2/3] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone && chown -R mysql:root /var/lib/mysql/ 0.0s
=> CACHED [mariadb 3/3] COPY my.cnf /etc/mysql/conf.d/my.cnf 0.0s
=> [mariadb] exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:aab60b8f65c659b5c3018194902f9f0166525cd5856b00c666835f2624ae9167 0.0s
=> => naming to docker.io/library/sample-airtime-topup-platform-main-mariadb 0.1s
=> [php internal] load build definition from Dockerfile 0.5s
=> => transferring dockerfile: 4.87kB 0.0s
=> [php internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> [php internal] load metadata for docker.io/library/php:8.1.2-apache 1.4s
=> [php 1/28] FROM docker.io/library/php:8.1.2-apache@sha256:6db15b73781c2caf1ce974a4b6f8e29b8abc3a3dded82289a5797059d380bd49 0.0s
=> [php internal] load build context 0.1s
=> => transferring context: 227B 0.0s
=> CACHED [php 2/28] RUN a2enmod rewrite expires include deflate proxy headers ssl 0.0s
=> CACHED [php 3/28] RUN a2ensite default-ssl 0.0s
=> CACHED [php 4/28] RUN mkdir -p /usr/share/man/man1/ /usr/share/man/man7/ 0.0s
=> CACHED [php 5/28] RUN apt-get update 0.0s
=> CACHED [php 6/28] RUN apt-get install -y --no-install-recommends sshpass libpng-dev libjpeg-dev libwebp-dev libjpeg 0.0s
=> CACHED [php 7/28] RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 0.0s
=> CACHED [php 8/28] RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so 0.0s
=> CACHED [php 9/28] RUN pecl install xdebug 0.0s
=> CACHED [php 10/28] RUN docker-php-ext-enable xdebug 0.0s
=> CACHED [php 11/28] RUN docker-php-ext-configure gd --with-webp --with-jpeg --with-xpm --with-freetype 0.0s
=> CACHED [php 12/28] RUN docker-php-ext-install gd mysqli opcache pdo pdo_mysql pdo_pgsql pgsql ldap intl gmp zip 0.0s
=> CACHED [php 13/28] RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install sockets 0.0s
=> CACHED [php 14/28] RUN make-ssl-cert generate-default-snakeoil 0.0s
=> CACHED [php 15/28] COPY ./docker/etc/motd /etc/motd 0.0s
=> CACHED [php 16/28] COPY ./docker/etc/vhost.conf /etc/apache2/sites-available/000-default.conf 0.0s
=> CACHED [php 17/28] COPY ./docker/etc/vhost-ssl.conf /etc/apache2/sites-available/default-ssl.conf 0.0s
=> CACHED [php 18/28] COPY ./docker/etc/init_container.sh /bin/ 0.0s
=> CACHED [php 19/28] RUN chmod 777 /var/log && chmod 777 /var/run && chmod 777 /var/lock && chmod 777 /bin/init_container.sh 0.0s
=> CACHED [php 20/28] RUN { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache. 0.0s
=> CACHED [php 21/28] RUN { echo 'error_log=/var/log/apache2/php-error.log'; echo 'display_errors=Off'; echo 'log_errors=On 0.0s
=> CACHED [php 22/28] RUN echo '* * * * * root php /var/www/html/artisan schedule:run >> /tmp/artisan_log' >> /etc/crontab 0.0s
=> CACHED [php 23/28] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 0.0s
=> CACHED [php 24/28] RUN mkdir -p /usr/local/nvm && curl https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash && . /usr/local/nv 0.0s
=> CACHED [php 25/28] RUN echo | tee -a /etc/skel/.bashrc >> /etc/bash.bashrc && echo ". /etc/profile.d/dockerenv.sh" | tee -a /etc/skel/.bashrc >> /etc/ba 0.0s
=> CACHED [php 26/28] RUN groupadd -g 1000 application && useradd -m -s /bin/bash -u 1000 -g application application 0.0s
=> CACHED [php 27/28] RUN mkdir /etc/apache2/ssl && openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/C=PK/ST=PUNJAB/L=LAHORE/O=OTIF So 0.0s
=> CACHED [php 28/28] WORKDIR /var/www/html/ 0.0s
=> [php] exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:b85f34fda3c4b12bcb4199eea01ba42a90dd4ecc8b37b89ceae787b4a09862d7 0.0s
=> => naming to docker.io/library/sample-airtime-topup-platform-main-php 0.0s
[+] Running 2/2
✔ Container rstp_db Started 0.8s
✔ Container rstp_php Running 0.0s
Running 2.6.3 (2023-09-15 09:38:21) with PHP 8.1.2 on Linux / 6.4.8-arch1-1
Reading ./composer.json (/var/www/html/composer.json)
Loading config file ./composer.json (/var/www/html/composer.json)
Checked CA file /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a file.
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www/html): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing command (/var/www/html): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (/var/www/html): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (/var/www/html): hg branch
Executing command (/var/www/html): fossil branch list
Executing command (/var/www/html): fossil tag list
Executing command (/var/www/html): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /root/.composer/composer.json

Reading ./composer.lock (/var/www/html/composer.lock)
Reading /var/www/html/vendor/composer/installed.json
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Reading ./composer.lock (/var/www/html/composer.lock)
Built pool.
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Nothing to install, update or remove
Package paypal/paypal-checkout-sdk is abandoned, you should avoid using it. No replacement was suggested.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files

post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
post-autoload-dump: @php artisan package:discover --ansi
Executing command (CWD): '/usr/local/bin/php' -d allow_url_fopen='1' -d disable_functions='' -d memory_limit='1536M' artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: otifsolutions/aclmenu
Discovered Package: otifsolutions/laravel-forcessl
Discovered Package: otifsolutions/laravel-settings
Package manifest generated successfully.
85 packages you are using are looking for funding.
Use the composer fund command to find out more!

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for rstp_db failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = db and table_name = migrations and table_type = 'BASE TABLE')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }

  +33 vendor frames 

34 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
make: *** [makefile:22: install] Error 1

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.