nickian / mautic-whitelabeler Goto Github PK
View Code? Open in Web Editor NEWEasily change the logos, colors and company name in the Mautic user interface.
Easily change the logos, colors and company name in the Mautic user interface.
I've been trying to use mautic-whitelabeler, and I kept getting the error Mautic installation not found here.
.
After doing some debugging, I figured that my mautic installation was fine, but the real reason for the problem was that my version of mautic (2.13.0
) was not included in the templates
folder for whitelabeler.
I suggest the error message be improved from Mautic installation not found here
to something along the lines of Incompatible mautic version XXX. See YYY for list of compatible versions
where YYY links to perhaps the templates
folder on GitHub. Or perhaps even print out the list of compatible versions to the page.
I double checked this
https://github.com/nickian/mautic-whitelabeler#common-issues
drwxr-xr-x 10 www-data www-data 4096 dic 11 01:06 ./
drwxrwxr-x 11 www-data www-data 4096 dic 11 01:00 ../
-rw-r--r-- 1 www-data www-data 141 dic 10 16:23 AppCache.php
-rw-r--r-- 1 www-data www-data 18705 dic 10 16:23 AppKernel.php
-rw-r--r-- 1 www-data www-data 156 dic 10 16:23 AppTestKernel.php
-rw-r--r-- 1 www-data www-data 383 dic 10 16:23 autoload.php
-rw-r--r-- 1 www-data www-data 41101 dic 10 16:23 bootstrap.php.cache
drwxr-xr-x 26 www-data www-data 4096 oct 26 14:27 bundles/
drwxr-xr-x 5 www-data www-data 4096 dic 11 00:45 cache/
drwxr-xr-x 2 www-data www-data 4096 dic 10 16:23 config/
-rw-r--r-- 1 www-data www-data 1469 dic 10 16:23 console
-rw-r--r-- 1 www-data www-data 13 oct 26 14:27 .htaccess
drwxr-xr-x 2 www-data www-data 4096 nov 22 22:28 logs/
drwxr-xr-x 4 www-data www-data 4096 dic 10 16:23 middlewares/
drwxr-xr-x 2 www-data www-data 4096 dic 10 16:23 migrations/
drwxr-xr-x 3 www-data www-data 4096 oct 26 14:27 Resources/
drwxr-xr-x 3 www-data www-data 4096 nov 22 22:33 spool/
-rw-rw-r-- 1 www-data www-data 7 dic 11 01:06 version.txt
user@server:/var/www/mautic/htdocs/app$
What else can I do?
Thank you
Hi,
1 - 2.15.1 template is missing so i cannot use whitelabeler.
2 - Also, i've noticed that Whitelabeler does not permit to change the logo used by Mautic when the main menu is collapsed. It's actually using the logo we have chosen for the "not collapsed menu" and hiding it.
Do you think I could duplicate 2.15.0 template ?
Hi nick, 🥇
thank you for making this super nice script.
it's just that, I'm still constrained during the installation process.
Mautic could not find. Make sure your path is correct.
http://prntscr.com/kfvp1e : ini adalah direktori yang benar
I have followed the instructions.
url_fopen is ON
and all I have followed.
beg for the solution.
information :
I am very happy if you can solve this problem.
regards.
Hi,
I'm using the bitnami stack AWS AMI deployment of Mautic on AWS. I'm having trouble accessing mautic-whitelabeler
. I was wondering if anyone could guide me on how to access the whitelabeler.
I have identified that on my awc ec2 instance, I have mautic installed in the following folder:
/opt/bitnami/apps
, as inside this folder resides a folder called mautic
and a folder called phpadmin
. I've git cloned the mautic-whitelabeler
repo into this folder so I now have a folder called /opt/bitnami/apps/mautic/mautic-whitelabeler
. I also looked into earlier topics in this repo and added a file: /opt/bitnami/apps/mautic/package.json
as per Nick's instructions.
After following [these] instructions from the Bitnami site, I was able to access this package.json file from the browser at the following address: http://127.0.0.1:8888/package.json.
However, when I tried to access the mautic whitelabeler pages it returned a 404: http://127.0.0.1:8888/mautic-whitelabeler/index.php
Wondering if anyone knows how I should troubleshoot this, thanks!
Cheers!
Can it be use with self hosted Mautic?
I used it and it broke my site, I had to restore.
Please create a release so the user can download it easily.
It would be nice to be able to add more properties to logo images, like border-radius or padding, for instance.
It could be a free text input, or maybe more nice controls like the ones are already in the app.
After setting logo image, side-bar image, colors, etc, I started the labeling processing.
Console said "SUCCESS", but nothing changed in my site.
I checked my logs, and the problem was that the labeler didn't have permissions to write folder's site.
These is the log file:
[Wed Jul 26 13:45:21.325815 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Assets/css/app.css): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 21, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.325856 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 22, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.325869 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 23, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.327762 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Assets/css/libraries/libraries.css): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 38, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.327817 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 39, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.327850 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 40, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337890 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Views/Default/base.html.php): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 71, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337910 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 72, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337915 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 73, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337947 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Views/Default/head.html.php): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 84, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337952 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 85, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337955 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 86, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337992 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/UserBundle/Views/Security/base.html.php): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 97, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.337997 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 98, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.338000 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 99, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.338069 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Assets/js/1a.content.js): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 110, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.338075 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 111, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.338078 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 112, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.349499 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/apple-touch-icon.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.350554 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/mautic_logo_db64.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.354352 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/mautic_logo_db200.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.358504 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/mautic_logo_lb200.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.359673 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: move_uploaded_file(/path/to/mautic/favicon.ico): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 188, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.359695 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpqo5eKB' to '/path/to/mautic/favicon.ico' in /path/to/labeler/whitelabeler.php on line 188, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.359724 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: copy(/path/to/mautic/media/images/favicon.ico): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 189, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.361606 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/sidebar_logo.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.361877 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/CoreBundle/Views/LeftPanel/index.html.php): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 208, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.361905 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 209, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.361915 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 210, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.374600 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: imagepng(/path/to/mautic/media/images/login_logo.png): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 145, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.374749 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fopen(/path/to/mautic/app/bundles/UserBundle/Views/Security/base.html.php): failed to open stream: Permission denied in /path/to/labeler/whitelabeler.php on line 226, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.374762 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 227, referer: http://localhost/whitelabeler/
[Wed Jul 26 13:45:21.374780 2017] [:error] [pid 17477] [client ::1:32844] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /path/to/labeler/whitelabeler.php on line 228, referer: http://localhost/whitelabeler/
The White labeler is not updating the CSS color scheme in 2.15.0
Hello @nickian ... thanks for your Hard Work!
Can you release an updated version with 2.9.2 support?
Thanks a lot!
How to solve url problem not found (solved)
1 - Download the latest version of whitelabeler, here in Github;
2 - Upload to the Mautic root directory; (Eg mymautic/whitelabeler/)
3 - Open file version.txt and modify to 2.12.1. (mymautic/app/version.txt/)
4 - Access the whitelabeler url and make the label modifications.
5. After making the label modifications with whitelabeler, return the "version.txt" file to the current version (2.13.1 or higher)
Nick, can you please add matching Mautic version tags to your repo?
ie git log --pretty=format:%C(yellow)%h\ %ad%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --date=short
e445289 2018-12-24 (tag: v2.15.0) 2.15.0 Support [Nick Thompson]
3b4552f 2018-11-19 Fixed CSS/JS MIME Types [Nick Thompson]
4e097b9 2018-10-24 (tag: v2.14.2) 2.14.2 Support [Nick Thompson]
8364c2a 2018-10-01 (tag: v2.14.1) 2.14.1 Support [Nick Thompson]
ae5360d 2018-08-02 (tag: v2.14.0) 2.14.0 Support [Nick Thompson]
9353edd 2018-04-30 (tag: v2.13.1) 2.13.1 Support [Nick Thompson]
01d4768 2018-02-28 (tag: v2.12.2) 2.12.2 Support [Nick Thompson]
a93d3c3 2018-02-28 2.12.2 Support [Nick Thompson]
ca7b9a5 2018-01-08 Added 2.12.1 Compatibility [Nick Thompson]
441da9e 2017-12-07 (tag: v2.12.0) Added 2.12.0 Compatibility [Nick Thompson]
a40b8dc 2017-10-26 Added 2.11.0 Compatibility [Nick Thompson]
Sorry for raising this as an issue but I don't know how else to comment
Hey Nick
quick one to know if 2.13.1 compatibility is effective or not ? did not upgrade yet ;-)
while using this plugin for branding ,, doing fine .. but not updating the new logo. icon. Fevion, name but it says success , and i am getting below error in mautic logs
mautic.CRITICAL: Exception thrown when handling an exception (InvalidArgumentException: The directory "/var/www/html/app/cache/prod/doctrine/cache/file_system" does not exist and could not be created. at /var/www/html/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php line 85) {"exception":"[object] (InvalidArgumentException(code: 0): The directory "/var/www/html/app/cache/prod/doctrine/cache/file_system" does not exist and could not be created. at /var/www/html/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php:85)"
Can you help @nickian
Mautic is running fine on https:// but Mautic Whitelabeler only works when using http:// in Mautic Root URL resulting in Mixed Content warnings for all logos.
Mixed Content: The page at 'https://MyMauticUrl/login#' was loaded over HTTPS, but requested an insecure image 'http://MyMauticUrl/media/images/login_logo.png'. This content should also be served over HTTPS.
Thank you for this great script!!
Your white labeler is very useful!
I'd like to suggest an enhancement. It seems the script updates the Growl Notification pop-up with whatever is set as the Primary Color. But for me, that color is dark, which causes any links in the Growl Notification (.growl-alert
) text to show as that dark color on the dark notification background making the text nearly invisible. The contrast is non-existent.
I'd like to suggest adding the option to set the Growl Notification link color as well.
Here's a picture to give you an idea.
The Growl Notification appears in the Mautic Editor in the top right of the page anytime you perform an action. The problem here seems to be that the a
tag style that's written in /media/css/library.css
is applied to links in the Growl Notification.
I noticed the Growl Notification styles are written in /media/css/app.css
under .growl-alert
. But there's nothing there defining link color.
Anyways, hope this makes sense. It'd be very useful to be able to dictate that color specifically via your awesome whitelabeler.
Cheers!
I ran the whitelabeler — great interface — and received all success messages.
However, I experienced the following issues:
Q: do I have to re-install/restore Mautic? or do you have a copy of 2.13.1 .htaccess (or way of restoring mine)? Any advice?
Great project, thank you.
Version 2.10
cPanel latest
Confirmed that version.txt and package.json exists with proper web server permissions
After changing line 49 to echo 1 - It made some progress however it shows this error:
Waiting for input ...
OK
Looking for compatible Mautic installation ...
FOUND
Updating CSS colors ...
ERROR: Unable to find app.css in your Mautic installation.:
Thanks,
Hi, Please add latest version compatibility.
Thanks
Hi nickian!!
First of all thank you very much for your work. I've been trying to install it for several days but I always get the same error. I have tried everything that appears in the forum.
I work with apache and I have access to LICENSE.TXT and app / version.tx
Some help?
Thank you very much!
Not an issue just a comment: I think this works for 2.13.0 too. Thanks so much for your efforts! I had to modify version.txt to make it think it was 2.12.2 but otherwise not seeing any issues.
Hello @nickian thanks for your great Work!
Any chance to make this php compatible with command line? Would be great to automate this process with command line and params for login logo, sidebar and colors
Thanks!
Hi and thank you for putting this together.
As the title states, the whitelabeler is not able to find mautic at my url. Here is my error code:
PHP Warning: get_headers(http://clickmy.video/fitbomb/LICENSE.txt): failed to open stream: Connection refused in /home/ets987/public_html/mautic-whitelabeler-master/index.php on line 46, referer: http://clickmy.video/mautic-whitelabeler-master/
I have tried all of the recommended fixes in many of the posts.
-allow_url_fopen is on
-all files exist and are accessible
-I've tried adding package.json. I can access it via browser
-all A's when tested here: https://www.ssllabs.com/ssltest
What else can I try? What could be the issue?
Thanks again.
v2.12.2 has been released. Will it blend?
Hi Nickian,
The labeler is great tool, and it works great with 2.12.0. Is it compatible with the newer 2.12.1 version?
I just upgraded Mautic and the labeler isn't able to find the installation folder. Mautic Root URL works fine.
Root: /var/www/mautic/
Mautic 2.12.1
Apache 2.4
PHP 7.0
Ubuntu 16.04
After clicking Whitelabel or Save button in version 2.0.0 all uploaded images for login, sidebar and favicon seem to be saved correctly both in Mautic's media/images and Whitelabeler's assets directory BUT not showed as a final result and with red error messages for all ' is defined in config.json, but was not found in the assets folder.' and without any Mautic or NGINX error messages. After a few attempts suddenly they got showed and saved but when de-selecting and uploading other image version they can no longer be removed and keep re-appearing after Whitelabel or Save. Something wrong in the javascript or another issue I should check in my configuration?
Line 72 in 3b4552f
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.
Hi, i'm using version 2.8.2 and logos are not being uploaded correctly, i ran the process few times and logos are not working, also colors.
Hi,
Hello good afternoon.
I tried everything already and I can not solve it
Can you help me ?
Dear Nickian,
tried all options that you have provided as common issues, but unable to get through the error - Common Issues. I get the error Mautic installation not found at this URL.
I extracted the master.zip in the same folder where LICENSE.txt is existing.
I can see the LICENSE.txt from my browser. What I cannot succeed is sudo a2enmod rewrite. It says command not found.
where am i going wrong?
thanks in advance.
Hello,
Could you update the script for v2.14.0?
It would be awesome!
Thanks in advance!
Permissions are correct.
Previous version found path correctly.
Where is Mautic installed?
Absolute path to Mautic's root on your server.
Mautic installation not found here.
apache2 runs as www-data
All directories owned by www-data
Hi Nickian,
First of all, I would like to appreciate you for this beautiful application.
With Mautic 2.14.2 "Where is Mautic installed?" is detected but
"Mautic Root URL" is not found
Please help
thanks
Possibly like this:
php ./cli.php --whitelabel --config=./assets/bluetheme.json
Thanks for what you've added to v2 so far Nick!
What are some immediate check that can be made when getting the error "Mautic installation not found here."
I have been able to update by changing the app/version.txt file to read 2.14.1 - running white labeler, then changing it back to 2.14.2. In the Mautic Colors dashboard there is a typo 'Primary'. Thanks for this great project nickian!
Hi, My mautic-whitelabeler is stuck at Updating CSS colors...
Please note: Both requirements of gd & allow_url_fopen are enabled.
Hi Nick,
After try your script, our mautic 2.9.2 got error as below, may i know how to fix withour restore data?
The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.
System administrators, check server logs for errors.
I upload this plugin on mautic 2.15.0 and installed all the library that suggested https://github.com/nickian/mautic-whitelabeler but getting issue
How i get it resolved ?
Thanks
Copyright 2017 Mautic. All Rights Reserved.
I am no lawyer but I think this footer should not be editable. Wouldn't it be misleading to say that you own the rights to Mautic?
For the sake of fast applying and automating the changes on each new version of Mautic:
Mautic is secured by ssl. If I type in the current domain, starting with https, the error message "Mautic installation not found at this URL." comes up. By using http instead of https, everything works.
But the whitelabeler updates the files with the unsecured logo paths.
It would be great to make this work.
Thanks!
Sebastian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.