Jump to content

Joss

PW-Moderators
  • Posts

    2,856
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Joss

  1. Yep! And I think I did it just before I had all these backup woes.
  2. @teppo Okay, I have just uninstalled Hanna Code Helper which appears to have been generating a lot of log entries! One every few seconds. It appears to have started 4 days ago, about the same time as I had problems backing up.
  3. This is my hanna code <?php if($ad == "random"){ $products=wire("pages")->get("/settings/adverts/")->children; $product=$products->getRandom(); }else{ $product=wire("pages")->get("/settings/adverts/$ad"); } if($product){ echo "<div class='footad'>"; if($product->amazon_paste){ echo $product->amazon_paste; } echo "</div>"; }
  4. This is the error I am getting: Fatal Error: Uncaught Error: Class 'TextformatterHannaCode' not found in site/modules/HannaCodeHelper/HannaCodeHelper.module:111 and Fatal Error: Uncaught Error: Call to undefined function wire() in /site/assets/cache/HannaCode/inline-ad.php:5 Stack trace:
  5. Hi Teppo! I turned it off and cleared it. I notice in the notes it says that it is limited to the last 100 only. I don't know if that means it only displays the last 100 or only keeps the last 100. But the entire database is not very big. 5000 rows total? A couple of megabytes? It is still a bit of a puzzle. Kualo couldn't see an obvious reason. I also got this with another small site that doesn't have jumplinks installed. HOwever, I think the logs have gone nuts. I am getting this error about not finding the Hanna Code text formatter. I am just updating Wire because of another error (not displaying fields or templates in setup).
  6. I don't think I have had that kind of problem in the last nine years! Which says a lot for Ryan.
  7. Okay, I have just overwritten Wire from the one from the DEV download and that seems to have solved it. The version is still showing as 175.
  8. Ah, I thought I was on the latest. I will go check
  9. For some reason, it is taking it's css from ProcessTemplateEdit id (which is in the ProcessTemplate.css file in the core), rather than from the admin theme class ProcessTemplateEdit.
  10. This is where my abilties crash! But here is a screenshot:
  11. A little bit more. Looking at the page source, the following form is not showing: <form id="ProcessTemplateEdit" class="InputfieldForm _InputfieldWrapper3" method="post" action="save" data-colspacing="0"> The css is: .pw-init #ProcessTemplateEdit { display: none; } If I delete "none" in Chrome console, the page shows.
  12. Hi, psy It's the same on all themes. I have just noticed this in the Chrome console. No idea if it has anything to do with it, but I am not getting it on sites without the problem: Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at HTMLDivElement.<anonymous> (InputfieldTextTags.min.js?v=1-1619298240:1) at Function.each (JqueryCore.js?v=183:2) at init.each (JqueryCore.js?v=183:2) at InputfieldTextTags (InputfieldTextTags.min.js?v=1-1619298240:1) at HTMLDocument.<anonymous> (InputfieldTextTags.min.js?v=1-1619298240:1) at l (JqueryCore.js?v=183:2) at Object.fireWith [as resolveWith] (JqueryCore.js?v=183:2) at Function.ready (JqueryCore.js?v=183:2) at HTMLDocument.A (JqueryCore.js?v=183:2)
  13. UPDATE - Installing the dev from today seems to have solved the issue On the sites I have upgraded to 175, when I click on Setup->Templates->Template name, I just get nothing as shown in the pic below. Well, it says I am editing it, but there is nothing shown even though the pages are working fine. The same happens when I click to edit a field This is happening on both dev sites on my local set up and on live sites. When I updated (from 168, I think), I also updated a pile of other things like ListerPro, page actions, a couple of pro fields. Not that I think they are anything to do with it, but I throw them into the mix in case. It is the same in the Ukit and default themes, so it's not a theme issue. Any clues? Have I missed an important announcement somewhere? I was about to start on a new site, and I can't! Joss
  14. Adrian, I have confirmed it works without hitting the backup button. 🙂
  15. I have had an email from support at Kualo, and I must give them a positive shoutout. They really have gone into this in detail. Brilliant. Anyway, this is what they have said (which I have slightly redacted) Does that throw any light on the situation for anyone?
  16. Thanks, wbmnfktr. I use Kualo and they are very robust. I have used them for years. They are being very helpful trying to work out what is happening. The resource use on the particular server is quite low. Hi, Adrian. I am going to try upgrading without hitting the backup button on a different site (I want to leave the site we are messing with as is till I work out what has gone wrong). But the DB is very small. Just 61mb.
  17. HI Robin I can back up with Phpmyadmin okay. I am not sure what SessionHandlerDB is, unfortunately! There wont be any large tables - the site is not that big. Also, I have updated this site before without any issues. What about the list of errors the host sent to me? (up a couple of posts). Does any of that give a clue?
  18. Hi Horst. Trying to upgrade to the current dev. Although I could do a manual upgrade, that doesn't solve the problem as to why this is going wrong in the first place. I have tried on two different installations which I think are on slightly different PW versions. The upgrade module is up to date on one and not on the other. So I don't think it is that as such. There is a conflict somewhere, and it is recent. I upgraded a couple of other installations on the same server a couple of weeks ago without a problem.
  19. The host has been playing and they keep seeing this in the logs. At this point, I am out of my depth! Error: Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away In /wire/core/WireDatabasePDO.php line 499 1. /wire/core/WireDatabasePDO.php(499): PDOStatement->execute() 2. /wire/core/PagesLoader.php(764): WireDatabasePDO->execute(Object(PDOStatement)) 3. /wire/core/Pages.php(706): PagesLoader->getById(Array, Object(Template), 29) 4. /wire/core/PagesType.php(388): Pages->getById(Array, Array) 5. /wire/core/Users.php(58): PagesType->get(2138) 6. /wire/core/Session.php(180): Users->get(2138) 7. /wire/core/ProcessWire.php(520): Session->__construct(Objec They tried increasing the resources to see if that did anything, but no. It is still failing. One note - the MySQL server is there. It hasn't gone anywhere! Joss
  20. As a tiny update, Kualo, my hosts, are playing with it. They replicate the problem every time, but the logs have yet to cough up anything useful.
  21. I went to update a site today, but as soon as I hit the backup databsase button, it shot to 98% CPU. I tried it on another PW site and that did it when I hit the Upgrade link. Any bright ideas what might be causing it? PHP version? (I am on 7.4 and made the change relatively recently.) Something with HTACCESS perhaps that was changed with the last update I did? (I think I updated the Pro-cache module not long back) I tried turning on Debug, but since the site gets stuck, it doesn't cough up anything. And hello to everyone! Joss EDIT The solution or workaround is not to hit the backup button, but to just backup with phpmyadmin (which I do anyway). However, why it is getting stuck, I am not sure. This seems to be less about CPU overload and more about timing out. See my later post with the reply from the host who has been brilliant.
  22. Just chucking this in here incase anyone else has this problem. Upgraded to the latest dev and it failed (I never get that!!!!!) I got the warning: Warning: require_once(/sites/domain name/wire/core/ProcessWire.php): failed to open stream: No such file or directory in /sites\domain name\index.php on line 32Fatal error: require_once(): Failed opening required '/sites/domain name/wire/core/ProcessWire.php' (include_path='\php\PEAR') in \sites\domain name\index.php on line 32 Turned out it hadn't renamed wire-3xx to wire This was locally using XAMMP. So, if you see this, check: Has it renamed the wire directory, And if everything extracted okay. (I have seen that on another post once, I think). Okay, back to what you were doing!
  23. Beat you to it, @kongondo !!! I do know this stuff (somewhere in my head), but it is so long since I have done any of it that I am struggling to dredge it out!
×
×
  • Create New...