Search
Other Sourcerer questions
Forum

Moved working site to a different domain, Sourcerer no longer working.

Arthur Cain's Avatar Arthur Cain
I transferred my working Joomla site to a new domain. I used extension manager to confirm the download key and the new domain address is showing under the download key.

However, the sourcerer scripts are no longer working at the new location.

Is there something else that I was supposed to do?


Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Is Sourcerer not working?
Or are the custom codes you place vias Sourcerer not working?

What do you see instead of what you expect in the HTML output of the website?
Please post a rating at the Joomla! Extensions Directory
Arthur Cain's Avatar Arthur Cain
I only see the headings that I specified in the script. The rest comes out blank. The exact same script works fine in the original location.
Arthur Cain's Avatar Arthur Cain
I don't see what the difference is other than different IP address. They are both on the same server at the same hosting company.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
This is not a Sourcerer issue.

The issue is with your new server not being allowed to access the external URL via file_get_contents.
That could be due to the domain having issues.
As for me, that second URL redirects to:
http://lostredirect.dnsmadeeasy.com/lostredirect.html

I recommend you ask your host for help on this.

Again, this has nothing to do with Sourcerer.
Please post a rating at the Joomla! Extensions Directory
Arthur Cain's Avatar Arthur Cain
Turned out to be a silly mistake on my part and an easy solution. Moving Joomla to a new domain is not enough. The php.ini file needs to be moved or created as well.

By default allow_url_fopen = Off. If it is not set to On, Sourcerer is not going to work when trying to read a file.

Just wish it didn't take me most of a week to figure it out. I think it should be part of the setup instructions.
Peter van Westen's Avatar Peter van Westen ADMIN
In the setup instructions of Joomla I assume.

You say "Sourcerer is not going to work". It is not Sourcerer that is not working.
It is the PHP code that you are placing through Sourcerer that is not working.
That is down to PHP and your server settings. Not something down to Sourcerer itself.
The same thing would happen if you use that PHP code in a PHP file in a different way.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription