-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Comments
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 |
Hi nickian - having the same issue . |
@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:
|
Thanks @nickian . Works perfectly. |
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. |
Hi, I have the same problem, so i downloaded the package.json. User Apache has full access to the file. Any ideas ? Kr, |
@pckladivo The script is looking for package.json to validate the domain and |
totally took my site offline |
@DigitalDirector usually when my Mautic site gives me the offline error, I do this and it fixes it:
or
|
worked! Thanks... |
the color didn't change in the left sidebar |
@DigitalDirector you probably have to clear your browser's cache. |
I'm also getting:
My absolute path is correctly found. I'm using official Docker Mautic image, which seems to doesn't include a Thank you! |
@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 |
@nickian I checked 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! |
@bazaglia You can try changing index.php on line 49 (https://github.com/nickian/mautic-whitelabeler/blob/master/index.php#L49) Just change to |
Hi Nick, looking forward the new version of whitelabeler for mautic version 2.10 that just's been released ;-) |
Absolute path to Mautic's root on your server. Mautic version: 2.12.1 After the last update, the file "package-lock.json" was created in the root.
|
I renamed the file to "package.json" and then deleted the cache. But the whitelabeler did not identify. |
@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. |
2.12.1 |
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? |
@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 |
No, it worked fine for me with 2.12.1. Seems to be working for this person after my last update as well: #18 |
OK, @nickian ! Now, it worked for me. I downloaded the whitelabeler again, and it worked. |
Ainda não consegui resolver o problema "Instalação Mautic não encontrada neste URL" na versão v2.12.2 |
Hi, @nickian not working for 2.14.2 for Mautic Root URL it says |
Try changing the URL to remove /app/mautic-whitelabeler |
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.
The text was updated successfully, but these errors were encountered: