New uploads don’t show on my site with the plugin enabled.
I tracked down the bug to your plugin:
running replace_host_name()
on the 'upload_dir'
filter has the side effect as below.
Before running the filter:
$uploads['error'] = bool(false)
After running the filter:
$uploads['error'] = string(0) ""
This is because replace_host_name()
relies on str_replace()
, which, when passed an array, apparently changes booleans to strings.
This makes the wp_get_attachment_url()
think there is an error, and reverts the attachment’s URL to the GUID. In my case those are the URLs from the staging server, which means some images don’t show up. (And those that do show are all from the staging server, which is incorrect anyway.)
I’m not sure if this is a problem with the plugin being too aggresive, or it’s more a bug with str_replace()
. I’ve googled it but didn’t find anything useful.
I had to disable the plugin to make the site work.
]]>Hi,
My name is Amit and I am in charge of compatibility between WPML and other plugins and themes. I’m writing to you about helping to resolve an issue between WPML and Dynamic Hostname.
Here is a recording that the client created to help explain the problem:
HERE IS THE RECORDING:
https://www.youtube.com/watch?v=pyg–9GVYK0
(reported in https://wpml.org/forums/topic/dynamic-hostname-issue-with-root-page/)
We’d like to ask your help in resolving that issue, we want our shared clients to have a fast solution and reduce future support requests.
Can you please contact me – [email protected] and we’ll look together and fix?
Cheers!
Amit
i wanted to let you know that i am in big trouble with the dynamic hostname plugin here https://www.ads-software.com/support/plugin/dynamic-hostname i posted that one review here https://www.ads-software.com/support/topic/thank-you-834 but since then things again changed
it redirects to wp-login.php when i open the developer environment, check here:
https://testblog.domain.com/ (works) is also the site and home url
https://testblog.domain2.com/ redirects to wp-login
but the urls after the first forward slash all work “/”
here, see:
https://testblog.domain.com/de/
https://testblog.domain2.com/de/
it is just the main home directory url “https://testblog.domain.com/” which causes trouble
since i am not good in php, i dont know how to solve it
could you please help? ??
PS: I use WPML plugin too. (that is where the root page is generated)
]]>I’ve caught following error message on wp-admin/customize.php
.
Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/wordpress/wp-content/plugins/dynamic-hostname/dynamic-hostname.php on line 80
Could you please fix this error or may I help to fix this?
]]>掲題の件について、原因等、お判りになる方はいらっしゃいますでしょうか??
VCCWにてローカル環境で構築し、WordMoveにて公開したWEBサイトを案件として制作したのですが、その際に一部環境において画像がアップロード出来ない問題が発生しました。
結果的に、Dynamic Hostnameを無効化することで解決できましたが、原因が全く分かりません。
詳細な状況は以下のブログにて記載させていただきましたが、原因がお判りになれば、ご教授いただければ幸いです。
https://www.flapism.jp/other/592/
Taka you are my hero, i run a big site, and after updating WPML, https://www.ads-software.com/plugins/any-hostname/ did not work anymore, it did not show the main site, so i did a quick search on the plugins directory for “hostname” and yours came up second, i thought i am already lost so i tried it AND YOURS WORK LIKE A CHARM!!! Please keep up the great work
]]>Within your plugin description, you are using incorrect grammar. It currently states the following:
This plugin changes dynamically and automatically the host name which WordPress uses.
This should be something along the lines of:
]]>This plugin is able to, dynamically and automatically, change the host name that WordPress uses.
Hi
Great plugin – the only one that works for me.
I am getting the following prompt within the WordPress Admin area:-
[Dynamic Hostname] Please define the constant WP_HOME in your wp-config.php.
What do I specifically need to add to wp-config.php please>
Thanks
Glennyboy