Hi,
I am introducing an Ad box element in my page. I am adding the image ad for all pages, and then the external URL and I am checking the checkbox to open in a new tab. Then when I am saving the edits and load the page, the ad is directing to my homepage instead of the external link. When I reload the tagdiv editor, I can see that the URL has not been saved. I add it again, and it is not saved again.
I have checked the browser console, and I do not see any errors there. I have checked the server Logs (Apache) and I do not see any errors there either.
In debug.log I have tons of errors like the following:
[10-Jan-2025 09:11:52 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/vhosts/finupnews.gr/httpdocs/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php on line 1257
[10-Jan-2025 09:11:52 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/vhosts/finupnews.gr/httpdocs/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php on line 1257
[10-Jan-2025 09:11:52 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/vhosts/finupnews.gr/httpdocs/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php on line 1257
The only solution has been to delete the module altogether and start from scratch. But even that is not always guaranteed to work properly. Meaning, it is very possible that deleting the Ad box which is not saving the URL, and adding a new Ad box and following the process step by step from zero can sometimes work, but it can also not work again and again.
Please advise how can it work properly? I have the Newspaper theme in its most recent version, and everything else is up to date.
Best regards,
Konstantinos
Hello,
This warning is on our list to investigate it. Please let me know what PHP version you have. Also, if the URL is not saved you can inspect them by right-clicking -> inspect -> console -> select the error in the tab network -> preview, and you can see the cause.
Please check this topic https://forum.tagdiv.com/topic/tagdiv-composer-does-not-save-only-content-of-homepage/
Thank you!
Hi Anamaria,
Thank you for assisting me with this. The PHP version is 8.1.31.
When I try to save the edits, I see no explicit errors in the console. The ad banner is being saved okay, and I get the green animation that confirms it; it’s only the external URL which is not being saved. When I reload the page on the front end, I can see the banner being displayed where expected, but the URL is pointing to my own homepage instead of the desired URL.
Best regards,
Konstantinos.
Hello,
I tested it on my end, and it is working. I think that is something particular on your website. Can you please contact us via email at contact@tagdiv.com and provide the wp-admin access? Where is the ad that you have set, and what link do you want to set to check the issue?
Thank you!
Hi Anamaria,
Please bear in mind that this is not a consistent problem, but when it occurs, it does really occur! Last time I had to completely remove that Ad box instance and introduce a new one, and that worked.
Usually I manage ads in a different way than the Ad box module, but from time to time I do need to use that instead, and every time I start off skeptical whether it is going to work or not.
This time I had to completely remove the Ad box instance that wouldn’t save the link, and introduce a new one as well, and this time it also worked eventually. But generally speaking it is crazy unreliable.