Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • melsmarsh

    (@melsmarsh)

    Fatal error: Cannot redeclare sh_mbt_download_and_insert_attachment() (previously declared in /home/customer/www/melsmarsh.com/public_html/wp-content/plugins/mybooktable/includes/functions.php:1088) in /home/customer/www/melsmarsh.com/public_html/wp-content/plugins/mybooktable-pro3/includes/professional2/professional2.php on line 608

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    melsmarsh

    (@melsmarsh)

    Same thing happened to me. Whatever upgraded last night took my site down with a fatal error too.

    Thread Starter melsmarsh

    (@melsmarsh)

    As I mentioned by the time you got around to responding, it would likely be legitimately gone from clinical. It was there for multiple hours and turned out it wasn’t needed. There were just gremlins in the code and one part needed to be condensed.

    Thank you for your help

    Thread Starter melsmarsh

    (@melsmarsh)

    That was on the clinical page (Table 7) I added to just that one from the time you sent it and I am to change it though.

    That being said, I have the sorting for Acting and Classes (Tables 5 and 6) finally fine at least in preview. Hidden code is in the CSS, the sorting is in custom commands (basically nothing really changed from what I was originally given).

    Since I now have Table 5 and 6 working at least on the sorting part AND the hidden part, I am going to swap out the code to see if I can’t get Table 7 to work properly which means by the time that you see this it will legitimately not be there. (Which so far in preview it is looking completely perfect.)

    The current code for this was literally present days ago and was not functioning. Has to be a gremlin somewhere.

    I just consolidated all of the no-wrap code together (it was ignoring the code for table 5 and 6 and only working on table 7) and I might have fixed it at last. I am going to wait for siteground to do whatever and not look at this again for another day or two but I am feeling good about this assuming the previews are accurate. I have at least four more tables to do by next week.

    Thank you for your patience.

    Thread Starter melsmarsh

    (@melsmarsh)

    There is a gremlin somewhere. I cleared out everything instead of Instead of copy and pasting the code and editing it, I hand typed all of the code to make things hidden in the plugin options. Exact words. I now have two of the problem children partially fixed in the hidden page and sorting. The wordwrap is still broken as far as I can tell for column 2 (as 1 is hidden). I am coming back to one tomorrow once 1) table 7 is finished, 2) the host clears whatever they are doing.

    Thread Starter melsmarsh

    (@melsmarsh)

    Sir….

    I have been using your code and have been since we started this conversation. I, contrary to what my problems with this would suggest, actually was a web programmer for a number of years, building I don’t even know how many websites in the days of handcoding. I just did not want to handcode what is likely to eventually be 10-12 tables (I am at 7 right now) with up to 60+ rows. I don’t have time for that type of frustration anymore at my age especially with wordpress and plugins making it much easier to do.

    You claim you can’t see the code that has been updating. That’s due to my host taking their sweet time updating, not that I am not doing it. The Astra people I spoke to over a few days ran into the same issue.

    I have not been posting all of the code here since it is several lines. But I have now copy and pasted this all in full into the clinical page’s custom command code and NOTHING has changed in the preview. Nothing. No column has sorted from what it was before. Nothing has been hidden. Exactly nothing has changed, for better or for worse. At least if there was a change of some type (of any type actually), it would be easy to debug if that is not what was desired.

    As far as in the CSS portion, the first column IS listed as column 1 for all of the ones. It has been listed for days like that. Only in the custom portion on the edit page did I start at zero.

    Once the teaching page (which I am trying to fix this the old fashioned way by just adding more columns, then sort on the second) updates and still looks good on desktop, I might just flip everything that way which will also deal with the wrapping issue. It will just stay looking more circa mid-1990s than I would have hoped.

    Thread Starter melsmarsh

    (@melsmarsh)

    The part that is actually supposed to be doing the sorting ( “order”: [ [ 0, “desc” ] ] ) is in the Custom Commands part. That has never been anywhere else. It’s working fine on several tables. I just have to remember to change the column number if needed.

    The part about how to hide things ( .tablepress-id-5 .column-0 {
    display: none;
    } as well as the no page break is in the plugin options. Putting that code in the custom commands part does not show any changes in the preview. And in other posts you implied it went in plugin options which since it looks like a different language, it would make sense.

    Unfortunately, the only manual flush cache option for the host is when I install or deactivate a plugin. Otherwise I just wait. Like right now I made some changes to the teaching page to see if that looks any better and site ground is taking it’s time.

    I added a column of content to split the dates into start/end and told it to sort by end date which is now the second column/column 1. The content hasn’t been refreshed to see that another column has been added but the commands from the Custom Command for sorting is now sorting by semester on the live site. The preview is correct but is it still going to look ok on the live site? Who knows… Sigh.

    Thread Starter melsmarsh

    (@melsmarsh)

    Going into the plugin there is a section called “Plugin Options.” There is a section called “Custom CSS.” That is where it is. The checkmark is checked. I hit save on it.

    I do not know why, but sometimes it takes siteground anywhere from a few minutes to a few hours (sometimes a day even) to get some changes to reflect. The mysteries of siteground I guess. This is why it takes so long to fix any part of this site.

    (The Astra free support people found this out too)

    Thread Starter melsmarsh

    (@melsmarsh)

    I did use the code from all of those posts you sent the links to… it was already placed.

    The sort column is still appearing despite me telling it to hide column 0 (since in a comment you said it starts at 0) for tables 5, 6, 7. All of that was directly copy and pasted, just changing table numbers.

    The nowrap code which is needed for the second column… (column 1) for 5, 6, 7 is also no longer functioning.

    Unfortunately, as someone on workman’s comp (215.19/week) who hasn’t been able to find paying work for 2.5 years (which is why I am doing the site to help get all my stuff together) I can’t afford to pay $80 a year to find out why the code which should work to hide columns isn’t working and lines are not breaking.

    I think at this point the truly easier thing to do would be to create more columns then sort by the second.

    Thread Starter melsmarsh

    (@melsmarsh)

    Also as you might notice, they are not reverse sorting and are not going away.

    I think the tables are 5, 6, 7

    Thread Starter melsmarsh

    (@melsmarsh)

    What is the code? I tried


    .tablepress-id-7 .column-0 { display: none; }

    and it’s not hiding column 0 and the table went back to breaking.

    Thread Starter melsmarsh

    (@melsmarsh)

    See that’s the thing… I am looking directly at it.

    Here is a screenshot for the clinical page when in Tablepress. Likewise the courses and performance page are all set up similarly.

    Thread Starter melsmarsh

    (@melsmarsh)

    It’s less the host, more the theme. As my husband (who works in IT mind you) he doesn’t understand why computers don’t behave consistently when I am in the room.

    OK… so I just checked and it looks like it still isn’t fully working either on the clinical or the teaching page sorting wise. I have anything that is really listed as present listed as 50000 (or higher!) in the column which is higher (obviously than 2023). It was trying to trick me.

    The clinical page isn’t breaking anymore though it still has the sort order.

    The teaching page still isn’t sorting though it also has a hidden column which it is supposed to sort by AND it is still breaking column 1.

    I checked it on Chrome, Opera, and iphone.

    Thread Starter melsmarsh

    (@melsmarsh)

    Sorry about that. Astra’s tech support had to log into my site yesterday to help with a mobile issue (menu no longer appears on mobile) and I don’t know what they did, but they screwed it up. I had to get a backup from a few days ago. It should be ok now.

    But yes, you are correct. The hidden column trick seemed to work well enough at least in Opera… Thank you for that. I kept scrolling through all the posts a few times just to look for where to hide things and originally missed it in the plugin itself, haha. It’s too early in the morning to be working on websites. Sigh.

    A less annoying problem is there any easy way to not have certain columns information break in a certain way? IE, my clinical work. My work titles are long, I understand if that needs to break, but having my years break or the city/state break is strange.

    Thread Starter melsmarsh

    (@melsmarsh)

    So in Opera it’s fine in everything. In Chrome, half are not working now but others are fine. I cleared my cache. I don’t understand.

Viewing 15 replies - 1 through 15 (of 21 total)