• if ($_POST[‘post_category’])
    {
    $post_categories = $_POST[‘post_category’];
    $args[‘category__in’] = $post_categories ;
    }

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    PHP 7.4 starts issuing error ‘warnings’ if a variable doesn’t exist and you use a statement like your example. Code still works, though, although the error warnings are in your error.log file.

    I haven’t updated that plugin for a while. Instead, for my use case, I just built a bare-bones template based on my theme. So I am not surprised that there are issues. Probably even more in PHP 8+.

    I might try to update the plugin for PHP 8.x, which will take care of those errors. But I have no ETA, due to other projects that have a bit more demand (I’m a one-person shop). If I do find time, it may take at least a month to squeeze it into my schedule.

    Your issue has made me more aware of the need to update the plugin for PHP 8, though.

    Thread Starter dbase66

    (@dbase66)

    Hi, good choice to repair in case of php 8.
    And please give the plugin the possibility to choose wich post or page to convert!

    Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    Actually, you motivated me to work on the upgrade. Currently testing now.

    As for choosing which post to convert, you can do that by assigning the desired posts a unique category, then selecting that category on the Settings page.

    The update should be finished by the end of the week; possibly sooner. Takes a while to test.

    Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    Just doing some final testing on the upgrade. But had a sudden thought – would an option to include comments on each post in the output be useful? Or not useful?

    Any other new features that you think would be useful?

    Thanks…Rick…

    Thread Starter dbase66

    (@dbase66)

    Comments are superfluous.
    The main target is to export a site ore a page to html, not depending on categories!
    please make is so, the i can choose the page or site!

    Thread Starter dbase66

    (@dbase66)

    Hey, do you have news?

    Thread Starter dbase66

    (@dbase66)

    Hey, working on it?

    Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    Still in progress. Other projects keep getting in the way. Thanks.

    (On my site, I just created a new template with only output of headers and content. Used a copy of the page.php file in your theme. Doesn’t have all the options – you would have to hard code the query you need, but works well.)

    Thread Starter dbase66

    (@dbase66)

    Kind of Landing-Page – Template?

    Plugin Author Rick Hellewell

    (@rhellewellgmailcom)

    I use the basic blog page template (usually page.php, but depends on the theme), and modify that to strip out all CSS classes and header/sidebar/footer. The result is just the post heading and content, for all of the posts.

    The query I use sorts by oldest first. You could modify that query to select certain categories or date ranges … which is basically what this plugin does. The settings are used to build the query, then the ‘plain’ page is generated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Code crash PHP 7.4’ is closed to new replies.