Wa Gateway | Multi device BETA | MPWA MD

Wa Gateway | Multi device BETA | MPWA MD v8.0.0 ( Extended License )

No permission to download

zhang0524

Member
Aug 25, 2022
49
3
8
Hello,
I have a problem installing 4.2.1, I don't know what is the problem? The following is the process of my installation, please help to solve it, thank you!

My server environment is:
Nginx 1.20.2
PHP 7.4
MySQL 5.6
Node.js 16
Step 1 Detect the server configuration environment, which is normal;
Step 2 Enter KEY, normal
The third step is to detect the database link, normal
Step 4 Fill in the administrator information, normal
Step 5 After clicking to confirm the administrator information, the page will display "500 SERVER ERROR", but after refreshing the page, you can enter the home page, but you cannot log in, and "500 SERVER ERROR" is always displayed.
I checked the database and the database is empty.

Please help me solve the problem, thanks a lot! !
 

Attachments

  • 1.jpg
    1.jpg
    36.9 KB · Views: 48
  • 2.jpg
    2.jpg
    15.5 KB · Views: 48
  • 3.jpg
    3.jpg
    22.7 KB · Views: 45
  • 4.jpg
    4.jpg
    6.4 KB · Views: 43
  • 5.jpg
    5.jpg
    55.3 KB · Views: 47

hmc

Member
Banned User
Jul 23, 2022
98
50
18
Server Room
localhost
Hello,
I have a problem installing 4.2.1, I don't know what is the problem? The following is the process of my installation, please help to solve it, thank you!

My server environment is:
Nginx 1.20.2
PHP 7.4
MySQL 5.6
Node.js 16
Step 1 Detect the server configuration environment, which is normal;
Step 2 Enter KEY, normal
The third step is to detect the database link, normal
Step 4 Fill in the administrator information, normal
Step 5 After clicking to confirm the administrator information, the page will display "500 SERVER ERROR", but after refreshing the page, you can enter the home page, but you cannot log in, and "500 SERVER ERROR" is always displayed.
I checked the database and the database is empty.

Please help me solve the problem, thanks a lot! !
there is some problem with your database, you have not configured it properly. Go to .env file and change the value APP_INSTALLED=true to APP_INSTALLED=false

after refresh you would be able to reinstall the script, if the problem remains same then you need to migrate to v.4.1.1 which is stable version.
 
  • Like
Reactions: vivos1

hmc

Member
Banned User
Jul 23, 2022
98
50
18
Server Room
localhost
Decoded:
server\router\index.js

Code:
'use strict'
const express = require('express'),
  router = express.Router(),
  wa = require('./model/routes'),
  store = require('./model/store'),
  { initialize } = require('./model/whatsapp'),
  CryptoJS = require('crypto-js'),
  validation = process.env.AUTH
router.get('/', (_0x2d3762, _0x739c0a) => {
  const _0xc050d4 = require('path')
  _0x739c0a.sendFile(_0xc050d4.join(__dirname, '../../public/index.html'))
})
router.post('/backend-logout', wa.deleteCredentials)
router.post('/backend-generate-qr', wa.createInstance)
router.post('/backend-initialize', initialize)
router.post('/backend-send-list', wa.sendListMessage)
router.post('/backend-send-template', wa.sendTemplateMessage)
router.post('/backend-send-button', wa.sendButtonMessage)
router.post('/backend-send-media', wa.sendMedia)
router.post('/backend-send-text', wa.sendText)
router.post('/backend-getgroups', wa.fetchGroups)
router.post('/backend-blast', wa.blast)
module.exports = router
 

hmc

Member
Banned User
Jul 23, 2022
98
50
18
Server Room
localhost
decoded: server\database\index.js

Code:
const mysql2 = require('mysql2')
require('dotenv').config()
const db = mysql2.createPool({
    host: 'localhost',
    user: process.env.DB_USERNAME,
    database: process.env.DB_DATABASE,
    password: process.env.DB_PASSWORD,
    port: process.env.DB_PORT,
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0,
  }),
  setStatus = (_0x381a55, _0x4248d3) => {
    try {
      return (
        db.query(
          "UPDATE numbers SET status = '" +
            _0x4248d3 +
            "' WHERE body = " +
            _0x381a55 +
            ' '
        ),
        true
      )
    } catch (_0x3e9c31) {
      return false
    }
  }
function dbQuery(_0x333c46) {
  return new Promise((_0x3ddb40) => {
    db.query(_0x333c46, (_0x3787c5, _0x4fdb28) => {
      if (_0x3787c5) {
        throw _0x3787c5
      }
      try {
        _0x3ddb40(_0x4fdb28)
      } catch (_0x299d91) {
        _0x3ddb40({})
      }
    })
  })
}
module.exports = {
  setStatus: setStatus,
  dbQuery: dbQuery,
  db: db,
}
 

hmc

Member
Banned User
Jul 23, 2022
98
50
18
Server Room
localhost
decoded: public/js/main.min.js

Code:
$(document).ready(function () {
  'use strict'
  $('.toggle-search').on('click', function (e) {
    $('.app').toggleClass('search-visible')
    e.preventDefault()
  })
  $('.content-menu-toggle').on('click', function () {
    $('body').toggleClass('content-menu-shown')
  })
  !(function () {
    if ($('.horizontal-menu').length) {
      $('.hide-sidebar-toggle-button').on('click', function (e) {
        e.preventDefault()
        a()
      })
      var e = $('.app-menu li:not(.open) ul'),
        n = $('.app-menu li.active-page > a')
      if ($(window).width() > 1199) {
        null != i && (i.destroy(), (i = null))
      } else {
        var t = document.querySelector('.app-menu')
        i = new PerfectScrollbar(t)
        e.hide()
      }
      $(window).resize(function () {
        if ($(window).width() > 1199 && null != i) {
          i.destroy()
          i = null
        } else {
          var n = document.querySelector('.app-menu')
          i = new PerfectScrollbar(n)
          e.hide()
        }
      })
      $('.app-menu li a').on('click', function (e) {
        var n = $(this).next('ul'),
          t = $(this).parent('li'),
          a = $('.app-menu .menu-list > li.open')
        if (n.length) {
          return $(window).width() > 1199
            ? void e.preventDefault()
            : (t.hasClass('open')
                ? (n.slideUp(200), t.removeClass('open'), i.update())
                : (a.length &&
                    (t.parent().children('.open').children('ul').slideUp(200),
                    t.parent().children('.open').removeClass('open'),
                    i.update()),
                  n.slideDown(200),
                  t.addClass('open'),
                  i.update()),
              false)
        }
      })
    }
    if ($('.app-sidebar').length) {
      var i
      e = $('.accordion-menu li:not(.open) ul')
      n = $('.accordion-menu li.active-page > a')
      e.hide()
      $('.app.menu-hover').length && $(window).width() > 1199
        ? (i.destroy(), (i = null))
        : ((t = document.querySelector('.app-menu')),
          (i = new PerfectScrollbar(t)))
      $(window).resize(function () {
        if (
          $('.app.menu-hover').length &&
          $(window).width() > 1199 &&
          !i.length
        ) {
          var e = document.querySelector('.app-menu')
          i = new PerfectScrollbar(e)
        } else {
          i.length && (i.destroy(), (i = null))
        }
      })
      $('.accordion-menu li a').on('click', function (e) {
        var n = $(this).next('ul'),
          t = $(this).parent('li'),
          a = $('.accordion-menu > li.open')
        if (n.length) {
          return $('.app').hasClass('menu-hover') && $(window).width() > 1199
            ? void e.preventDefault()
            : (t.hasClass('open')
                ? (n.slideUp(200), t.removeClass('open'), i.update())
                : (a.length &&
                    (t.parent().children('.open').children('ul').slideUp(200),
                    t.parent().children('.open').removeClass('open'),
                    i.update()),
                  n.slideDown(200),
                  t.addClass('open'),
                  i.update()),
              false)
        }
      })
      $('.active-page > ul').length &&
        ($('.app').hasClass('menu-hover')
          ? $(window).width() < 1199 && n.click()
          : n.click())
      $('.app').hasClass('menu-off-canvas') ||
        ($(window).width() < 1199 && !$('.app').hasClass('sidebar-hidden')
          ? ($('.hide-app-sidebar-mobile').length ||
              $('.app').append('<div class="hide-app-sidebar-mobile"></div>'),
            $('.hide-sidebar-toggle-button i').text('last_page'))
          : $('.hide-sidebar-toggle-button i').text('first_page'),
        $(window).resize(function () {
          $(window).width() < 1199 && !$('.app').hasClass('sidebar-hidden')
            ? ($('.hide-app-sidebar-mobile').length ||
                $('.app').append('<div class="hide-app-sidebar-mobile"></div>'),
              $('.hide-sidebar-toggle-button i').text('last_page'))
            : $('.hide-sidebar-toggle-button i').text('first_page')
        }))
      $('.hide-sidebar-toggle-button').on('click', function (e) {
        e.preventDefault()
        a()
      })
      $('.hide-app-sidebar-mobile').on('click', function (e) {
        e.preventDefault()
        a()
      })
      $('.menu-off-canvas .hide-sidebar-toggle-button').on(
        'click',
        function () {
          return (
            $('.app').toggleClass('menu-off-canvas-show'),
            $('.app').hasClass('menu-off-canvas-show')
              ? $('.app-sidebar .logo').addClass('canvas-sidebar-hidden-logo')
              : setTimeout(function () {
                  $('.app-sidebar .logo').removeClass(
                    'canvas-sidebar-hidden-logo'
                  )
                }, 200),
            false
          )
        }
      )
    }
    function a() {
      return (
        !$('.app').hasClass('menu-off-canvas') &&
        ($('.app').toggleClass('sidebar-hidden'),
        $('.app').hasClass('sidebar-hidden')
          ? (setTimeout(function () {
              $('.app-sidebar .logo').addClass('hidden-sidebar-logo')
            }, 200),
            $(window).width() > 1199
              ? $('.hide-sidebar-toggle-button i').text('last_page')
              : $('.hide-sidebar-toggle-button i').text('first_page'))
          : ($('.app-sidebar .logo').removeClass('hidden-sidebar-logo'),
            $(window).width() > 1199
              ? $('.hide-sidebar-toggle-button i').text('first_page')
              : $('.hide-sidebar-toggle-button i').text('last_page')),
        false)
      )
    }
  })()
  $('[data-bs-toggle="popover"]').popover()
  $('[data-bs-toggle="tooltip"]').tooltip()
  window.addEventListener(
    'load',
    function () {
      var e = document.getElementsByClassName('needs-validation')
      Array.prototype.filter.call(e, function (e) {
        e.addEventListener(
          'submit',
          function (n) {
            false === e.checkValidity() &&
              (n.preventDefault(), n.stopPropagation())
            e.classList.add('was-validated')
          },
          false
        )
      })
    },
    false
  )
  ;(() => {
    if ($('.content-menu').length) {
      const e = document.querySelector('.content-menu')
      new PerfectScrollbar(e)
    }
  })()
  'undefined' != typeof hljs && hljs.initHighlighting()
})
$(window).on('load', function () {
  setTimeout(function () {
    $('body').addClass('no-loader')
  }, 1000)
})
 

Morehere

Well-known member
Null Master
Trusted Uploader
Jan 13, 2020
965
959
93
New Modification with Dialogflow Integration to interact with your own chatbot.
Check more details for dialogflow

Features:
1. This works with Autoreply if "Dialogflow Status" is active.
2. Active/Inactive button for individual device to interact with Dialogflow.
3. If "Dialogflow Status" is inactive then Autoreply works with default auto reply keywords.
3. Dialogflow JSON data add/delete option available in Admin server setting.

Note: This works with all users or devices only when Admin sets dialogflow settings with single agent.
1662102620348.png

If you have any idea please share.

Code will be shared after all testing.
Guys this will help you to use your own chatbot using Dialogflow.

Follow the instructions:

1. Upload zip file extract it on your server
2. Install it by following install wizard
3. Create or login to https://dialogflow.cloud.google.com/
4. Create new agent (Please search tutorial for this )
5. Click as shown in image https://prnt.sc/549is6MFCG4Q
6. Download key json file from https://console.cloud.google.com/ (Please search tutorial for this )
7. Open json file and copy paste in Setting server-> Dialogflow JSON file data and SAVE it
8. (Optional) if you want to change language then edit .env and change LANGUAGE=en to your language
9. Go to Dashboard and click on "Active" button to activate Dialogflow response. "Inactivate" to use default autoreply's keywords
Enjoy
View hidden content is available for registered users!
 
Last edited:

Melissa

Member
May 7, 2022
60
11
8
Guys this will help you to use your own chatbot using Dialogflow.

Follow the instructions:

1. Upload zip file extract it on your server
2. Install it by following install wizard
3. Create or login to https://dialogflow.cloud.google.com/
4. Create new agent (Please search tutorial for this )
5. Click as shown in image https://prnt.sc/549is6MFCG4Q
6. Download key json file from https://console.cloud.google.com/ (Please search tutorial for this )
7. Open json file and copy paste in Server server-> Dialogflow JSON file data and SAVE it
8. (Optional) if you want to change language then edit .env and change LANGUAGE=en to your language
9. Go to Dashboard and click on "Active" button to activate Dialogflow response. "Inactivate" to use default autoreply's keywords
Enjoy
*** Hidden text: cannot be quoted. ***
Bookmarked, anyone know how to blast message without getting number suspended btw?
 

Morehere

Well-known member
Null Master
Trusted Uploader
Jan 13, 2020
965
959
93
Bookmarked, anyone know how to blast message without getting number suspended btw?
Suspension or banning whatsapp number depends on who receives your message and if they report and report more than 10 or 15 will get banned. You can send unlimited whatsapp message and has no limit on this.
 

Argentino

Active member
May 1, 2020
127
66
28
Guys this will help you to use your own chatbot using Dialogflow.

Follow the instructions:

1. Upload zip file extract it on your server
2. Install it by following install wizard
3. Create or login to https://dialogflow.cloud.google.com/
4. Create new agent (Please search tutorial for this )
5. Click as shown in image https://prnt.sc/549is6MFCG4Q
6. Download key json file from https://console.cloud.google.com/ (Please search tutorial for this )
7. Open json file and copy paste in Server server-> Dialogflow JSON file data and SAVE it
8. (Optional) if you want to change language then edit .env and change LANGUAGE=en to your language
9. Go to Dashboard and click on "Active" button to activate Dialogflow response. "Inactivate" to use default autoreply's keywords
Enjoy
*** Hidden text: cannot be quoted. ***
Hi bro, I have a query, when working with a chatbot using Dialogflow is it possible to send files, buttons, lists? If so how would it work to configure?
 
  • Like
Reactions: pipopipotes

Mkapadia53

New member
Apr 19, 2021
10
3
3
Can AnyBody Share tutorials or steps on how I can configure my pm2 on VPS Run on Nginx Server
I tried several methods but my node js didn't start

Pls, Help @Morehere @hmc
 

zhang0524

Member
Aug 25, 2022
49
3
8
there is some problem with your database, you have not configured it properly. Go to .env file and change the value APP_INSTALLED=true to APP_INSTALLED=false

after refresh you would be able to reinstall the script, if the problem remains same then you need to migrate to v.4.1.1 which is stable version.
Dear hmc,
Thank you for your reply, I modified the "APP_INSTALLED=false" reinstall script according to your instructions, but the problem still exists, and I also installed v4.1.1, and the same problem occurred. I do not know what I did wrong? How do I need to install it?
 

Morehere

Well-known member
Null Master
Trusted Uploader
Jan 13, 2020
965
959
93
Hi bro, I have a query, when working with a chatbot using Dialogflow is it possible to send files, buttons, lists? If so how would it work to configure?
Sending files are not possible but you can send file link to download.
For Button,temple and list add code in dialogflow response and code is available from restapi->webhook
 

Morehere

Well-known member
Null Master
Trusted Uploader
Jan 13, 2020
965
959
93
Dear hmc,
Thank you for your reply, I modified the "APP_INSTALLED=false" reinstall script according to your instructions, but the problem still exists, and I also installed v4.1.1, and the same problem occurred. I do not know what I did wrong? How do I need to install it?
Bro simple
1. Set as
APP_INSTALLED=true
2. Go to database folder and find database.sql file and upload it in your database
3. Edit .env file add app url and database details
4. Visit your website and create admin as new user by registering.
5. Go to User manager-> Edit admin's device limit and set as lifetime validity
 
May 2, 2022
75
77
18
Bro simple
1. Set as
APP_INSTALLED=true
2. Go to database folder and find database.sql file and upload it in your database
3. Edit .env file add app url and database details
4. Visit your website and create admin as new user by registering.
5. Go to User manager-> Edit admin's device limit and set as lifetime validity

I did everything you taught, but there is no user manager option
screenshot-cerberus.net.br-2022.09.14-15_49_33.png
 

Latest posts

Forum statistics

Threads
69,226
Messages
908,438
Members
237,027
Latest member
YoGGe

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu