HSteeb
Forum Replies Created
-
Forum: Plugins
In reply to: [The Word Widget] The Word not updated for the current day(solution)
The user had installed a plugin that “speeds up” the display of the page, by caching the page contents. The cache contained The Word from a former day. After disabling the plugin, the web page again shows The Word for the current day.
Forum: Plugins
In reply to: [The Word Widget] ErrorDear Henry,
the “cURL error 7” mentioned in the log means “Failed to connect to host.”, which indicates for some reason the plugin in your WordPress installation does not reach out to “https://bible2.net/service/TheWord/twd11?format=atom” to fetch the required information.
I see this is the same effect reported in your related support query about Font Awesome few days ago (https://ww.wp.xz.cn/support/topic/activation-failed-17/).
The author of that plugin made a good explanation, trying curl directly on your server to access the other host. Unfortunately, I have nothing to add to these points. Accessing information from an outside host is crucial for these plugins. The Word Widget uses multiple PHP methods listed in the log – all of them fail, so obviously the reason is more fundamental. Hope you get a clue on this with your provider.
… so the problem has been resolved.
Forum: Plugins
In reply to: [The Word Widget] The Word Widget Portuguese (BR) is not working.Very sorry for that!
Unfortuately, 2017-03-16 the Sociedade Bíblica do Brasil terminated the permission to publish The Word using the Portuguese Almeida Revista E Atualizada. We thank the Sociedade Bíblica do Brasil for kindly granting permission to use the text so far! I asked to extend the license, but they refused to grant it.
Any help to handle this would be welcome. Maybe someone to contact them, or another Bible edition where we can get the license.
I’ll update the widget info page to reflect this change.
Original announcement:
http://bible2.net/2017/03/portuguese-almeida-revista-e-atualizada-permission-terminated/
Forum: Plugins
In reply to: [The Word Widget] Name of bibleChosen Bible: The name of the chosen Bible can be seen if you point with the mouse over the text, it is shown as a popup (HTML “title” attribute). But the Bible cannot be selected by the visitor; my assumption was that the WordPress administrator selects the Bible once in the dashboard widget area, depending on the language of the site contents.
Open New Tab: Actually some people think it is annoying to automatically open a link in a new tab; the visitor can force a new tab, anyway (middle mouse click, or via context menu).
Widget Looks: The widget writes HTML code which contains some specific CSS classes for the different parts of The Word (described in the “Installation” page). You need access to the CSS stylesheet used by your WordPress site, there you can enter or modify the layout of The Word via CSS rules. The screenshots were made with a specific CSS stylesheet, which is included as an example file in the plugin zip file. So you can paste its contents into your stylesheet.
Forum: Plugins
In reply to: [The Word Widget] not workingOK, HTTP 403 means “Forbidden”. But I found no indication about this in the bible2.net server log. So sorry, I have no solution so far. Would you consider the following questions?
1. Is your server configured to block outgoing requests?
If you put the following lines into the your server’s root folder as file
loadtheword1.phpand enter the address for your siteYOURSITE.orgin your browser ashttp://YOURSITE.org/loadtheword1.php, does it show “OK”?<?php $Xml = simplexml_load_file("http://bible2.net/service/TheWord/twd11?format=atom"); echo "simplexml_load_file " . ($Xml ? "" : "NOT ") . "OK.<br />";or extended with some heuristic settings:
<?php ini_set("user_agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"); ini_set("max_execution_time", 0); ini_set("memory_limit", "10000M"); $Xml = simplexml_load_file("http://bible2.net/service/TheWord/twd11?format=atom"); echo "simplexml_load_file " . ($Xml ? "" : "NOT ") . "OK.<br />";2. Otherwise: does your wp-config.php contain the following line?
define('WP_HTTP_BLOCK_EXTERNAL', true);In this case, you could allow access to bible2.net by adding
define('WP_ACCESSIBLE_HOSTS', 'bible2.net'); # comma separated3. Is your site run behind a proxy?
4. Is there any info in your WordPress logfile?
To inspect the WordPress logfile, create a file called
debug.log, make it server-writable, place it in thewp-contentdirectory, and add towp-config.php:define('WP_DEBUG_LOG', true) ini_set('error_log', WP_CONTENT_DIR . '/debug.log');Then configure the widget and inspect the
debug.logfile for info.Ensure to undo all changes after the testing.
Forum: Plugins
In reply to: [The Word Widget] not workingJust published an extended version 0.5 of the plugin: the admin widget form collects debug infos and displays them in case of an error. Could you try 0.5? Hope this shows the cause of the failure.
Forum: Plugins
In reply to: [The Word Widget] not workingDo you still have the same effect? It works for me.
What’s the WordPress version?Forum: Plugins
In reply to: [The Word Widget] does not workI just released version 0.4
which falls back to a safer method to retrieve data from bible2.net
on restricted server configurations. It works even if allow_url_fopen=Off.
Sorry for inconvenience!Forum: Plugins
In reply to: [The Word Widget] does not workHi Dawson,
(sorry for late reply – I didn’t get a notice about your question, or maybe overlooked it)
This looks like your PHP environment does not allow access to the remote URL of bible2.net. I do not yet have a solution for this, but maybe you can help find one! Would you try to create a file called
php.iniwith the lineallow_url_fopen=on
in the folder of the widget (typically
wordpress/wp-content/plugins/the-word-widget/) and in the sub-folderincludesthere?If this does not help, to find an alternative way that works, you might fetch the zip file
http://bible2.net/download/dev/2014-10-06_test_simplexml_load_file.zip
and put the 4 contained .php files in some folder on your server, then open them in order in your browser (the php.ini in the zip file is just the same as described above).
loadtheword0.phpjust reports the setting ofallow_url_fopen.loadtheword1.phpuses the same mechanism as the plugin (simplexml_load_file).loadtheword2.phpuses slightly modified code (setting user agent, memory limit…).loadtheword3.phpuses a rather different mechanismcurl.