0

I have two domains pointing to the same joomla 3 : example1.com (main domain) and example2.com. When I edit an article in front via the main domain, the drag & drop of an image works well with TinyMCE. When I connect from example2.com, I get an error 500 :

Call to undefined method Joomla\CMS\Document::addCustomTag() on this url: https://exemple2.com/fr/?option=com_media&task=file.upload&tmpl=component&xxxxxxxxxxxxxx=xxxxxxxxxxxxx&xxxxxxxxxxxxxxxxxxxxxxx=1&asset=image&format=json

enter image description here

Do you know how to solve this problem?

Thank you in advance,

3
  • I didn't know you could set up 2 domains, but was reading about it at docs.joomla.org/…. Of the options described there, how have you configured your site? TinyMCE seems to be sending an Ajax POST, so you'd need to understand how the request is being handled on your server, and in particular any URL translations performed. If it's Ajax with a json response then Joomla won't need to use a template, and some of the options in that Multiple Domains page talk about changing the template. Dec 17 '20 at 20:59
  • Hello Robbie, thank you for your answer. I have a primary domain example1.com and a secondary domain example2.com pointing to my server with a type A DNS redirection, my server accepts example2.com thanks to ServerAlias (apache). It's exactly the same joomla for both urls (same pages, templates, etc).
    – Lecraver
    Dec 24 '20 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.