Giter Site home page Giter Site logo

Comments (13)

nickian avatar nickian commented on June 15, 2024

@Bizcrony Is that an error that comes up when you pull up Mautic after whitelabeling, or something else? It doesn't look like an issue related to the whitelabeler, unless there is an issue with persmissions with the last step running the console commands.

Can you try logging into the server via SSH and going to the /app folder in Mautic. Then run a couple of commands:

sudo -u www-data php console cache:clear

Then:

sudo -u www-data php console cache:warmup

from mautic-whitelabeler.

Bizcrony avatar Bizcrony commented on June 15, 2024

@nickian thank for your reply .. but i did all check and number of time used this liberary to brand mautic but this time really facing an issue ,, whitelabel page says success .. but nothing has changed in mautic :( why i don't know .. all permission and files all fine ..

from mautic-whitelabeler.

nickian avatar nickian commented on June 15, 2024

The whitelabeler does not do anything to the /app/cache/prod/doctrine/cache/file_system directory at all. I'm not sure how it is related.

Do you have server-side caching turned on? Try restarting Apache. Make sure you're clearing your browser cache after running the whitelabeler.

from mautic-whitelabeler.

Bizcrony avatar Bizcrony commented on June 15, 2024

all i did .. nickain

from mautic-whitelabeler.

nickian avatar nickian commented on June 15, 2024

If there are no errors in your Apache log and none of those things worked then I'm not sure. I would post an issue on the actual Mautic GitHub page with that error that you received. Someone else might know what that means.

from mautic-whitelabeler.

Bizcrony avatar Bizcrony commented on June 15, 2024

if you like i can records

from mautic-whitelabeler.

nickian avatar nickian commented on June 15, 2024

Have you checked that the permissions are set correctly on your Mautic installation? I don't know enough about how the caching system Mautic uses works. Try asking someone on the Mautic page.

from mautic-whitelabeler.

RonPimplebut avatar RonPimplebut commented on June 15, 2024

Same here but I run mautic into a docker container. First I was thinking it was related to my docker volumes persistence but since I saw that this post was writted a day ago and after verified my volumes I am not sure anymore.

I am new to docker so I dont know how to debug this as well but When I inspect the element(the logo), on the login page, once the white labeling process as failed without telling me, I see this :

<div class="mautic-logo img-circle mb-md text-center" style="width:{{login_logo_width}}px;"> <img src="{{login_logo}}" style="width:{{login_logo_width}}px; margin:{{login_logo_margin_top}}px 0 {{login_logo_margin_bottom}}px 0;"> </div>

Notice the img path : {{login_logo}}

You can test it by your self at https://warketing.tk/mautic-whitelabeler
One more thing : I have an older installation of mautic on which everything as worked as expected

Any ideas to fix this ?
Thanks

from mautic-whitelabeler.

Bizcrony avatar Bizcrony commented on June 15, 2024

[2019-01-15 12:23:15] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2019-01-15 12:23:21] event.DEBUG: Notified event "console.terminate" to listener "Mautic\CoreBundle\EventListener\ConsoleTerminateListener::onConsoleTerminate". [] []
[2019-01-15 12:23:21] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2019-01-15 12:23:22] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2019-01-15 12:23:22] event.DEBUG: Notified event "console.terminate" to listener "Mautic\CoreBundle\EventListener\ConsoleTerminateListener::onConsoleTerminate". [] []
[2019-01-15 12:23:22] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []

from mautic-whitelabeler.

virgilwashere avatar virgilwashere commented on June 15, 2024

I pulled the repo down earlier this afternoon, and ran it on my dev server and it executed cleanly.

Mautic 2.15.0

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

from mautic-whitelabeler.

virgilwashere avatar virgilwashere commented on June 15, 2024

@nickian, you're already using file_get_contents to slurp in the template, why not use file_put_contents to write out the branded file?

$left_panel_template = file_get_contents('templates/'.$version.'/app/bundles/CoreBundle/Views/LeftPanel/index.html.php');

This fopen/fwrite/fclose sequence...

  $file = fopen($left_panel, "w");
  fwrite($file, $left_panel_new);
  fclose($file);

... becomes:

  $bytes_written = file_put_contents( $left_panel, $left_panel_new);
  if( $bytes_written !== strlen( $left_panel_new) )
  {
      // an error occurred writing
  }

Which would make it easy to add an error message to the output panel if write issues occur (would close out #5)

I'm not a PHP guy, but it seemed easier to me. Feel free to ignore me.

V

from mautic-whitelabeler.

nickian avatar nickian commented on June 15, 2024

@Bizcrony these look like errors related to the Mautic command console that runs when clearing the Mautic cache. Maybe because permissions are set incorrectly, or you're running the console as a user without sufficient privileges. I am not sure. Better question for the Mautic team.

from mautic-whitelabeler.

nickian avatar nickian commented on June 15, 2024

@virgilwashere Thanks. This is definitely not related to Ubuntu. It's something separate, config specific.

I will take a look at the file_put_contents function and test that out. I definitely would like to add better error logging and catching exceptions with this script. Hoping to find some time to improve that soon, as well as creating a command line interface option to make the process faster.

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.