Home Forums WoodMart support forum Update issues

Update issues

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #38636

    JuliaSan
    Participant

    Hello again, 🙂
    after updating yesterday to Version: 1.10.1 of woodmart I have found 2 issues:

    – I see this error message in the footer:
    Warning: count(): Parameter must be an array or an object that implements Countable in /home/.sites/928/site7896245/web/wp-content/themes/woodmart/sidebar-footer.php on line 14

    – the sidebars that I have set up have all disapperared.

    I am using a Child theme to avoid such things. 🙁

    Thanks for some support on solving these problems.
    Julia

    #38651

    Artem Temos
    Keymaster

    Hi,

    Our updates can’t remove any widgets so we don’t know why they disappeared. As for the warning, it seems to be a problem in new version of PHP only. You can change the file themes/woodmart/sidebar-footer.php and replace this line

    if( count( $footer_config['cols'] > 1 ) ) {

    with this one

    if( count( $footer_config['cols'] ) > 0 ) {

    #38773

    JuliaSan
    Participant

    Hello,
    thanks for your answer.

    The error message is unfortunately still there, although I changed the line in the file you told me to. Can you please advise?
    Thanks,
    Julia

    Attachments:
    You must be logged in to view attached files.
    #38813

    Artem Temos
    Keymaster

    Please, provide us your FTP access so we can check your code.

    #38885

    JuliaSan
    Participant

    Hi, ftp access in the private section.
    Thanks

    #38910

    Artem Temos
    Keymaster

    But the code is still wrong, be sure that you copied it from the topic here.

    if( count( $footer_config['cols'] ) > 0 ) {

    #38939

    JuliaSan
    Participant

    Oh, sorry, I was focusing on the 0 only, did not realize that the brackets are wrong as well…
    It worked now, thanks a million!

    #38960

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Update issues’ is closed to new replies.