×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Front End not completing

Front End not completing 11 years 3 months ago #19045

  • Jose Gil
  • Jose Gil's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi

I have had your component working but since the recent update by MailChimp, subscriptions only provide a spinning wheel. No response from the module at all.

The registration still works and the subscription occurs but the website provides no feedback.

Can you please help

Thank you

Front End not completing 11 years 3 months ago #19050

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Jose,
this must be a conflict with something on your page. If you look at our startpage at the bottom you'll find the module. When you subscribe to the list it works just fine.

Without a link to your page I won't be able to help you with that.
Cheers,
Daniel

Front End not completing 11 years 3 months ago #19051

  • Jose Gil
  • Jose Gil's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Thank you for the prompt reply.

Site address is www.hypnosistoday.com.au

Front End not completing 11 years 3 months ago #19052

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Let me guess! One of the latest extensions that you've installed has to do with SEF urls? Just disable it for com_cmc and the module should start to work again :)
The following user(s) said Thank You: Jose Gil

Front End not completing 11 years 3 months ago #19053

  • Jose Gil
  • Jose Gil's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I am using SH404SEF and I have now disable it for cmc_cmc. That did the trick.

Thank you for the great component and support. I will write you a review :)

Front End not completing 11 years 1 month ago #19889

  • Zane Jacobson
  • Zane Jacobson's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I have the same problem with 1.3.1 and am not using any kind of SEF currently.

There are no messages in the JS console relevant to the issue either.

www.backcountrypilot.net

The module is located in the footer. I'd appreciate someone taking a look.

Thanks.

Front End not completing 11 years 1 month ago #19892

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Jane,
I cannot look at your site as it is password protected. Would you mind sending access credentials to This email address is being protected from spambots. You need JavaScript enabled to view it.?

Thanks,
Daniel

Front End not completing 11 years 1 month ago #19905

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Zane,
The ajax response on your site looks like this:
 
<h6 class="auto-anchor-start-marker" style="display:none"></h6><h5 class="auto-anchor-start-marker" style="display:none"></h5><h4 class="auto-anchor-start-marker" style="display:none"></h4><h3 class="auto-anchor-start-marker" style="display:none"></h3><h2 class="auto-anchor-start-marker" style="display:none"></h2><h1 class="auto-anchor-start-marker" style="display:none"></h1>{"html":"saved","error":false}<h1 class="auto-anchor-stop-marker" style="display:none"></h1><h2 class="auto-anchor-stop-marker" style="display:none"></h2><h3 class="auto-anchor-stop-marker" style="display:none"></h3><h4 class="auto-anchor-stop-marker" style="display:none"></h4><h5 class="auto-anchor-stop-marker" style="display:none"></h5><h6 class="auto-anchor-stop-marker" style="display:none"></h6>

You have a plugin or something else that modifies it. All those divs are not coming from the component and that is why it is braking...
This is the correct response
{"html":"saved","error":false}

As you can see - the mail was saved, but because you have all those divs around it is not doing what it has to do in the frontend.
Regards,
Daniel

Front End not completing 11 years 1 month ago #19906

  • Zane Jacobson
  • Zane Jacobson's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Those are simply anchors that get appended as children before and after component content for "Back to top" style navigation for an extension that automatically makes a TAble of Contents from all H5 elements

. How are you wrapping your AJAX return? I'm curious why those are being appended to all output. Does the CMC module utilize JPlugin?
jimport('joomla.plugin.plugin');
 
class plgSystemJtricks_AutoAnchor extends JPlugin
{
    public function onAfterDispatch()
    {
        if (JFactory::getApplication()->isAdmin())
        {
            return;
        }
 
        // Adjust the component buffer.
        $doc = JFactory::getDocument();
        $buf = $doc->getBuffer('component');
 
        for ($i = 1; $i <= 6; $i++)
        {
            $buf = '<h' . $i . ' class="auto-anchor-start-marker" style="display:none"></h' . $i . '>' 
                . $buf
                . '<h' . $i . ' class="auto-anchor-stop-marker" style="display:none"></h' . $i . '>';
        }
        $doc->setBuffer($buf, 'component');
 
        return;
    }
}

Front End not completing 11 years 1 month ago #19907

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
We do ajax the way we are supposed to do it in joomla. Our url goes to
index.php?options...&format=raw

The plugin should only execute when the format of the request is html. And it should do absolutely nothing when you have an ajax request.

You see the first 4 line?
        if (JFactory::getApplication()->isAdmin())
        {
            return;
        }

this tells the plugin to do nothing when in the backend. The author of this plugin should also add few lines for a request with format=raw (fomat=ajax, format=json, format=xml etc)

Kind regards,
Daniel

Front End not completing 11 years 1 month ago #19908

  • Zane Jacobson
  • Zane Jacobson's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Thanks Daniel. I simply commented out the line that concatenates this output to the document on the Jtricks plugin and your module works as advertised. Seems like a bad idea to append anything to the main component output with little discretion.
  • Page:
  • 1
Time to create page: 0.137 seconds