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

Mautic Root URL - not detected #1

Closed
poizenlab opened this issue Mar 3, 2017 · 28 comments
Closed

Mautic Root URL - not detected #1

poizenlab opened this issue Mar 3, 2017 · 28 comments

Comments

@poizenlab
Copy link

It cant detect the root URL - Mautic Root URL

It does detect the absolute path though - Where is Mautic installed?

When root url entered in, it displays Mautic installation not found at this URL.

@nickian
Copy link
Owner

nickian commented Mar 3, 2017

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.

@redbackwebs
Copy link

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

@nickian
Copy link
Owner

nickian commented Mar 7, 2017

@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

@redbackwebs
Copy link

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

@nickian
Copy link
Owner

nickian commented Mar 7, 2017

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.

@pckladivo
Copy link

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

@nickian
Copy link
Owner

nickian commented Mar 7, 2017

@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?

@DigitalDirector
Copy link

totally took my site offline

@nickian
Copy link
Owner

nickian commented Mar 7, 2017

@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

@DigitalDirector
Copy link

worked! Thanks...

@DigitalDirector
Copy link

the color didn't change in the left sidebar

@nickian
Copy link
Owner

nickian commented Mar 7, 2017

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

@bazaglia
Copy link

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!

@nickian
Copy link
Owner

nickian commented Apr 13, 2017

@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?

@bazaglia
Copy link

@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!

@nickian
Copy link
Owner

nickian commented Apr 13, 2017

@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.

@nickian nickian closed this as completed Jul 20, 2017
@khaoua
Copy link

khaoua commented Sep 7, 2017

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

@isaipanelinha
Copy link

isaipanelinha commented Jan 10, 2018

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 } } }

@isaipanelinha
Copy link

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

@nickian
Copy link
Owner

nickian commented Jan 11, 2018

@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.

@isaipanelinha
Copy link

2.12.1

@nickian
Copy link
Owner

nickian commented Jan 12, 2018

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?

@isaipanelinha
Copy link

@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

@nickian
Copy link
Owner

nickian commented Jan 12, 2018

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

@isaipanelinha
Copy link

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

@RenerBR
Copy link

RenerBR commented Apr 9, 2018

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

@Nirind
Copy link

Nirind commented Oct 27, 2018

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

@faizanrbhat
Copy link

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

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

No branches or pull requests