Giter Site home page Giter Site logo

Comments (28)

nickian avatar nickian commented on June 4, 2024

Is there a package.json file in the root of your Mautic URL? It's looking for this file to verify the domain is correct: "http://yourmautic.com/package.json".

If anyone's wondering why this validation exists, it's there to make sure the absolute URL of the new logo images that are added are correct in the new image tags (the images are uploaded to the /media/images folder). I would have used relative paths, but sometimes Mautic isn't installed in the root, so something like <img src="/media/images/login_logo.png"/> wouldn't work.

from mautic-whitelabeler.

redbackwebs avatar redbackwebs commented on June 4, 2024

Hi nickian - having the same issue .
The file package.json is not in the root of Mautic
any suggestions to create one?

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@redbackwebs I'm not sure why your installation wouldn't have one. But if it doesn't, you can copy this file into the Mautic root: https://raw.githubusercontent.com/mautic/mautic/staging/package.json

If you do already have a package.json, make sure it, and your other Mautic files, are writable by the web server. For example:

chown -R www-data:www-data mautic_directory

from mautic-whitelabeler.

redbackwebs avatar redbackwebs commented on June 4, 2024

Thanks @nickian . Works perfectly.
This is a fantastic feature. Well done.
How will updates to Mautic effect the whitelabeling?

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

Unfortunately, updating Mautic will overwrite all of the whitelabeling and you'll have to run the whitelabeling app again.

I will have to update this script each time there is an update to Mautic and make sure it's compatible. Basically, I have to make sure new versions of Mautic haven't made other changes to the files modified in this script. Otherwise, I have to create new templates for new versions each time.

So check the README.md file for the versions this is compatible with before you use it. I updated it today to work with 2.7.0.

from mautic-whitelabeler.

pckladivo avatar pckladivo commented on June 4, 2024

Hi,

I have the same problem, so i downloaded the package.json. User Apache has full access to the file.
Mautic Root URL comes back green, but Where is Mautic installed? is always saying "Mautic installation not found here."

Any ideas ?

Kr,
Milos

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@pckladivo The script is looking for package.json to validate the domain and /app/version.txt to verify the path and version of Mautic. Do you have that .txt file in the app directory?

from mautic-whitelabeler.

DigitalDirector avatar DigitalDirector commented on June 4, 2024

totally took my site offline

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@DigitalDirector usually when my Mautic site gives me the offline error, I do this and it fixes it:

php /path/to/mautic/app/console cache:clear

php /path/to/mautic/app/console cache:warmup

or

cd /path/to/mautic/app/cache
rm -r prod
mkdir prod
chown -R www-data:www-data prod

from mautic-whitelabeler.

DigitalDirector avatar DigitalDirector commented on June 4, 2024

worked! Thanks...

from mautic-whitelabeler.

DigitalDirector avatar DigitalDirector commented on June 4, 2024

the color didn't change in the left sidebar

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@DigitalDirector you probably have to clear your browser's cache.

from mautic-whitelabeler.

bazaglia avatar bazaglia commented on June 4, 2024

I'm also getting:

Mautic installation not found at this URL.

My absolute path is correctly found. I'm using official Docker Mautic image, which seems to doesn't include a package.json file in Mautic installation. Even though I created one manually and I'm able to access it in http://localhost/package.json, error persists. Any suggestion @nickian?

Thank you!

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@bazaglia Hmm, I'm not sure. Can you confirm that your server allows PHP to use the file_get_contents() function? Check php.ini for allow_url_fopen = on. Otherwise, maybe there's an issue with using localhost. Have you tried adding a virtual host with a full domain?

from mautic-whitelabeler.

bazaglia avatar bazaglia commented on June 4, 2024

@nickian I checked allow_url_fopen in php info and it's on, as default. I also tried to use a virtual host with a full domain, but no lucky. :(

I read the URL checking is just for installations on subfolders. Is there a way I can ignore this warning and proceed anyway?

Thank you again!

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@bazaglia You can try changing index.php on line 49 (https://github.com/nickian/mautic-whitelabeler/blob/master/index.php#L49)

Just change to echo 1 and see what happens.

from mautic-whitelabeler.

khaoua avatar khaoua commented on June 4, 2024

Hi Nick, looking forward the new version of whitelabeler for mautic version 2.10 that just's been released ;-)

from mautic-whitelabeler.

isaipanelinha avatar isaipanelinha commented on June 4, 2024

Absolute path to Mautic's root on your server.
Mautic installation not found here.

Mautic version: 2.12.1

After the last update, the file "package-lock.json" was created in the root.

{ "name": "mautic", "version": "0.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { "abbrev": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz", "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=", "dev": true }, "argparse": { "version": "0.1.16", "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", "dev": true, "requires": { "underscore": "1.7.0", "underscore.string": "2.4.0" }, "dependencies": { "underscore.string": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", "dev": true } } }, "async": { "version": "0.1.22", "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz", "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=", "dev": true }, "coffee-script": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz", "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=", "dev": true }, "colors": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", "dev": true }, "dateformat": { "version": "1.0.2-1.2.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz", "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=", "dev": true }, "esprima": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", "dev": true }, "eventemitter2": { "version": "0.4.14", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", "dev": true }, "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", "dev": true }, "findup-sync": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", "dev": true, "requires": { "glob": "3.2.11", "lodash": "2.4.2" }, "dependencies": { "glob": { "version": "3.2.11", "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", "dev": true, "requires": { "inherits": "2.0.3", "minimatch": "0.3.0" } }, "lodash": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", "dev": true }, "minimatch": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", "dev": true, "requires": { "lru-cache": "2.7.3", "sigmund": "1.0.1" } } } }, "getobject": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", "dev": true }, "glob": { "version": "3.1.21", "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", "dev": true, "requires": { "graceful-fs": "1.2.3", "inherits": "1.0.2", "minimatch": "0.2.14" }, "dependencies": { "inherits": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", "dev": true } } }, "graceful-fs": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", "dev": true }, "grunt": { "version": "0.4.5", "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz", "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=", "dev": true, "requires": { "async": "0.1.22", "coffee-script": "1.3.3", "colors": "0.6.2", "dateformat": "1.0.2-1.2.3", "eventemitter2": "0.4.14", "exit": "0.1.2", "findup-sync": "0.1.3", "getobject": "0.1.0", "glob": "3.1.21", "grunt-legacy-log": "0.1.3", "grunt-legacy-util": "0.2.0", "hooker": "0.2.3", "iconv-lite": "0.2.11", "js-yaml": "2.0.5", "lodash": "0.9.2", "minimatch": "0.2.14", "nopt": "1.0.10", "rimraf": "2.2.8", "underscore.string": "2.2.1", "which": "1.0.9" } }, "grunt-legacy-log": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz", "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=", "dev": true, "requires": { "colors": "0.6.2", "grunt-legacy-log-utils": "0.1.1", "hooker": "0.2.3", "lodash": "2.4.2", "underscore.string": "2.3.3" }, "dependencies": { "lodash": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", "dev": true }, "underscore.string": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", "dev": true } } }, "grunt-legacy-log-utils": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz", "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=", "dev": true, "requires": { "colors": "0.6.2", "lodash": "2.4.2", "underscore.string": "2.3.3" }, "dependencies": { "lodash": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", "dev": true }, "underscore.string": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", "dev": true } } }, "grunt-legacy-util": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz", "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=", "dev": true, "requires": { "async": "0.1.22", "exit": "0.1.2", "getobject": "0.1.0", "hooker": "0.2.3", "lodash": "0.9.2", "underscore.string": "2.2.1", "which": "1.0.9" } }, "hooker": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", "dev": true }, "iconv-lite": { "version": "0.2.11", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz", "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=", "dev": true }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "js-yaml": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz", "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=", "dev": true, "requires": { "argparse": "0.1.16", "esprima": "1.0.4" } }, "lodash": { "version": "0.9.2", "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz", "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=", "dev": true }, "lru-cache": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", "dev": true }, "minimatch": { "version": "0.2.14", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", "dev": true, "requires": { "lru-cache": "2.7.3", "sigmund": "1.0.1" } }, "nopt": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", "dev": true, "requires": { "abbrev": "1.1.0" } }, "rimraf": { "version": "2.2.8", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", "dev": true }, "sigmund": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", "dev": true }, "underscore": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", "dev": true }, "underscore.string": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz", "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=", "dev": true }, "which": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz", "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=", "dev": true } } }

from mautic-whitelabeler.

isaipanelinha avatar isaipanelinha commented on June 4, 2024

I renamed the file to "package.json" and then deleted the cache. But the whitelabeler did not identify.

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

@isaipanelinha You should have package.json and package-lock.json in your root.

The absolute path to Mautic field doesn't look for package.json, it looks for /app/version.txt and checks the version number. What does that file say in your installation?

For the mautic root URL, it looks for LICENSE.txt in the root.

from mautic-whitelabeler.

isaipanelinha avatar isaipanelinha commented on June 4, 2024

2.12.1

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

Not sure what's going on then. Maybe a permissions issue? Have you checked to see if the whitelabeler files have access through the web server user to access the Mautic files?

Are you using Apache? Does your Apache error log say anything? Or the browser console?

from mautic-whitelabeler.

isaipanelinha avatar isaipanelinha commented on June 4, 2024

@nickian Thank you for your work and patience. Have you checked that users of version 2.12.1 have been able to work with whitelabeler? Did any user give you any feedback? Regards

from mautic-whitelabeler.

nickian avatar nickian commented on June 4, 2024

No, it worked fine for me with 2.12.1. Seems to be working for this person after my last update as well: #18

from mautic-whitelabeler.

isaipanelinha avatar isaipanelinha commented on June 4, 2024

OK, @nickian ! Now, it worked for me. I downloaded the whitelabeler again, and it worked.
Thank you!

from mautic-whitelabeler.

RenerBR avatar RenerBR commented on June 4, 2024

Ainda não consegui resolver o problema "Instalação Mautic não encontrada neste URL" na versão v2.12.2

from mautic-whitelabeler.

Nirind avatar Nirind commented on June 4, 2024

Hi, @nickian not working for 2.14.2 for Mautic Root URL it says
"Mautic installation not found at this URL."

from mautic-whitelabeler.

faizanrbhat avatar faizanrbhat commented on June 4, 2024

Hi, @nickian not working for 2.14.2 for Mautic Root URL it says
"Mautic installation not found at this URL."

Try changing the URL to remove /app/mautic-whitelabeler

from mautic-whitelabeler.

Related Issues (20)

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.