Viewing 10 posts - 1 through 10 (of 16 total)
Author
Posts
  • #9747

    Have just updated to 3.3.2 and all seems to be OK except that I am having trouble updating the HTML blocks on the Home page. Whether I try to make the change in ‘source’ mode or WYSIWYG, when I click ‘Save’ nothing happens.

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9748

    I have two HTML blocks on my Home Page. Have just discovered that I can update the secondary HTML block without problem – it is only the Principle Block which is causing the problem.

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9749

    I suspect the problem is in your custom files linked to by the buttons in that HTML block (e.g. “WebsiteIntro.php”). Clicking on the buttons fails to open them for the same reason.

    See upgrade instructions, particularly this paragraph:

    But if you have ANY custom files on your system it is likely they will contain the “WT_” prefix, and they must all, therefore, be changed to use “KT_”. If you miss one case, either that page or your site will fail to open, and you will have somewhere an error message like “HTTP ERROR 403 ACCESS FORBIDDEN”. Typical custom files would include custom theme files (mystyle.css, myheader.php, mytheme.php, myfooter.php); custom language files, custom “histo” files, custom modules or copied modules, non-kiwitrees html or php files.

    (additional red highlighting is the specific issue you have).

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #9750

    Ah! That makes sense – I hadn’t thought of those ‘front-end scripts’ as custom files, but clearly they’re ‘non-kiwitrees php files’ – that’s the answer. I’ve changed one script as a test and it works, so I just have to work my way through the other 88!
    Many thanks Nigel.

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9751

    I’ve modified all the front-end scripts (changing the WT prefix to KT), and now they all work as they should .. BUT .. I am still unable to update the main HTML block – clicking ‘Save’ has no effect. Went through all the scripts again to be sure I hadn’t missed one but No. Looking at the source of the HTML block I can see nothing else suspect – with the possible exception of the Google analytics script at the end, which I don’t really use any longer so I would remove it to see if that has any effect – if I was able to update the block! Here’s the script:

    <script type=”text/javascript”>

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-45223249-1’]);
    _gaq.push([‘_trackPageview’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘http://www&#8217;) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    Any suggestions please Nigel?

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9752

    Ron

    Currently, I can’t access your site. See:

    Screenshot-2018-01-16-07.34.26

    Is that Google Analytics script really in the HTML block code? That’s an unusual place to put it, and I would think unlikely to perform its required function. It’s supposed to be in the page footer (according to Google). That’s why the “custom javascript” module was created.

    Your best next step (s) are:

    1. Look at the block using your browser’s “developer tool” (by clicking f12). It should have some errors listed.
    2. Look at your server logs for errors
    Nigel
    My personal kiwitrees site is www.our-families.info
  • #9755

    Currently, I can’t access your site

    That’s odd Nigel – I’ve been on an off with no problem for the last few hours – have also tried with other devices/ ip addresses without problem.

    Is that Google Analytics script really in the HTML block code?

    Yes – I transferred it into the HTML block back in Webtrees days (at least 4 years ago) when I abandoned my old Website HTML front-end.. I tried it that way – it seemed to work just fine so i left it there. I haven’t used the results much recently but it’0s still churning them out – and they appear to be OK.
    Server lerror log has hundreds of near-identical errors in last two days- e.g.

    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/ftp.so’ – /opt/alt/php56/usr/lib64/php/modules/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/gettext.so’ – /opt/alt/php56/usr/lib64/php/modules/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/iconv.so’ – /opt/alt/php56/usr/lib64/php/modules/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/simplexml.so’ – /opt/alt/php56/usr/lib64/php/modules/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/sqlite3.so’ – /opt/alt/php56/usr/lib64/php/modules/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/tokenizer.so’ – /opt/alt/php56/usr/lib64/php/modules/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [15-Jan-2018 19:18:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/alt/php56/usr/lib64/php/modules/xml.so’ – /opt/alt/php56/usr/lib64/php/modules/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9756

    I sent that prematurely ….
    I should have said ‘Thousands’ of near-identical errors in last two days (which I suspect are nothing to do with this and I think I should talk to the hosting service about it . But interspersed within them all the only other error type i can see is this one – repeated a few times during the last two days:

    [15-Jan-2018 11:15:23 UTC] PHP Fatal error: Call to a member function getClientIp() on null in /home/clandav/public_html/webtrees/includes/session.php on line 366

    Any clues in that?

    Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14

  • #9757

    I don’t think those errors would be causing an issue with just a single HTML block, so probably not the cause of this issue. It’s possible they are related to the problem I’m having accessing the site though. You should definitely alert your server host to those.

    For the HTML block, the only other solution is to edit it in the database.

    Look first in the table xxx_block. Sort by the “module name” column to find the html block or blocks. From there you can read the block_id.
    Now go to the table xx_block_settings. Sort by block_id column and find the rows related to the block_ids you found in the other table, There will be a number rows for each – designated by different “setting_names”. You want the ones with “setting_name” = html. I suggest you edit the code in the field “setting_value” a little at a time until you remove something that allows the block to work normally. Then put back as much as possible until it fails again.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #9758

    I sent that prematurely ….
    I should have said ‘Thousands’ of near-identical errors in last two days (which I suspect are nothing to do with this and I think I should talk to the hosting service about it . But interspersed within them all the only other error type i can see is this one – repeated a few times during the last two days:

    [15-Jan-2018 11:15:23 UTC] PHP Fatal error: Call to a member function getClientIp() on null in /home/clandav/public_html/webtrees/includes/session.php on line 366

    Any clues in that?

    None whatsoever. That is a generic “it’s broke” error message. We’d need to know what you were doing at exactly that moment to interpret it.

    Nigel
    My personal kiwitrees site is www.our-families.info
Viewing 10 posts - 1 through 10 (of 16 total)
  • The topic ‘Unable to update one of my HTML Blocks on Home Page’ is closed to new replies.