PHP 8.0 and 8.1 Autoload not working
-
Hey Annasta
I just upgraded from php 7.4 to php 8.1 and then down to php 8.0. 8 and 8.1 breaks autoload of products. The twirl thing keeps circulationg and no products appear.
I cannot say it’s your plugin. As you know I recently switched to TT3 theme. And now in process of switching CDN to Litespeed.
Let me know if you have any ideas and if so, when you expect to support 8.1. Until then I am staying on php 7.4
-
Note: I just enabled object cache – memcached before seeing this. That may also affect things.
I will try Redis later instead of memcache….
Autoload not working in Safari PHP 7.4 iMac
Things work while log’ed in, so I’m beginnging to suspect my Cache,Minify,Jscript… I am switching from WP-Optimize to Litespeed Cache, so let me tweak a bit more…
Ok
For Lightspeed Cache settings must be:– CSS Combine = Off (It breaks button layout, Filter Collapse)
– JS Combine = Off (It breaks autoload)
– Load JS Deferred = On (I was suspecting interupts here, but no, it works)It appears I can Exclude js. What is the string to Annasaa?
JS Excludes? empty string If you enabled minification, combination or push for JavaScript in the JS Settings tab, you may exclude some JS here. Use this space to list any JS files (one per line) you would like excluded from the optimization functions. You may enter full URLs or a partial string. There's no need to use wildcards in partial strings.
Also I can Exclude CSS if needs be…
So for now, problem solved for PHP 7.4.
I Can confirm that the above is still NOT working for php 8.0 nor 8.1. Autoload does not work. Filter Button opens filters in footer…
-
This reply was modified 2 years, 3 months ago by
hebhansen.
Hebhansen, welcome back to our support forum!
I know that it’s not announced officially, but we actually have run the filters through all the basic PHP 8 tests, and things worked as expected. Please do post here if you indeed find any irregularity in relation to the latest versions of PHP.
If my memory serves me well, Memcached influences the work of some types of queries. Among other things, I think it may halt the functioning of transients.
Hebhansen,
Please don’t defer the filters’ JavaScript loads!
The filters’ JS and CSS files will have their paths in the following folders:
..wp-content/plugins/annasta-woocommerce-product-filters/code/js/
..wp-content/plugins/annasta-woocommerce-product-filters/styles/and the auto-generated CSS options file is located here:
..wp-content/uploads/annasta-filters/css/
This file is constantly changing depending on the settings updates, so it should definitely be excluded from caching!
Hey Annastaa
Deferred is now off…
..wp-content/uploads/annasta-filters/css/ (exact path excluded)Not working on PHP 8.1
Admin is not cached at all and it does not work for admin either.
Filter Button layout os locked. Only icon changer from burger to x. Filter displays below footer. See screen.
Good morning Hebhansen,
I have just test-driven one of our test installations on a PHP 8.1 server, to get the feel of what you describe. Got a bunch of warnings and deprecation notices. Some originate in the Freemius component of our code, but these should only get displayed in the development environment.
Both the “Filters” button functionality, and the infinite scroll that you refer to are dependent on the Javascript/CSS component. From the moment that your page gets properly rendered (your screenshot demonstrates just that), PHP is (almost) off the hook. To make sure it’s not the AJAX component, your can check the PHP error log of your server. However, the more likely scenario is that you struggle with some remnants of the caching/optimization issues that you were facing before. Could be unrefreshed browser/cloud cache — who knows?
You May be Right and probably. I’m gonna let Litespeed Cache settle in a day or two, get images optimised, and distribute itself to its CDN.
Then go back to try php. And then look into memcache/redis. Right now it’s memcache.
If problem I will play with css and js settings and let you know what I find.
Filter right now is on all pages. I need to remove it on some since it removes my categories and just presents the pool of products.
I’m a bit confused about my bread crumbs. I think they are an organisational guide to newcomers, but the filter conflicts with them ? And remove them? Or can they co exist?
Hebhansen,
Please use the Display on section of your preset settings to limit the filters’ display to the needed pages. You can read a quick guide on how to set up the “Display on” section here.
If the filters’ breadcrumbs adjustment gets into conflict with your theme, you can disable it with the help of the annasta Filters > Product lists > Breadcrumbs support setting.
Will Yaost Breadcrumb settings interfere?
Our breadcrumb adjustment routine is based on the standard WooCommerce code and markup, so it’s extremely unlikely that it would work with 3d party breadcrumbs. Yoast will most likely use its own proprietary markup, so it doubt that our scripts will have any effect on it.
Hey @annastaa
I am running around in circles I think and I can’t seem to do what I prefer…
1) Filter has removed all category grids from displaying. I need my categories to display in the order I set up in woo. Not just products. Can I do that?
Here I should see 8 logos in a woo grid2) I want filter only when there is products in the pool. Can I do that? Some Categories show category grid only. Others show both cats and products. Others show only products and no categories.
The last 2 with products should have filter.When inside a cetegory, can it pull products from that cat only? No jackets in the shorts category.
Again my category structure is completely gone and all products load everywhere.
Well I’m sure it can, but I must be missing something.
I am aware of Display On. Still all other pages display all products and no Category grid.
3) Is there a disable filter per page? and where:
“Shop pages with enabled Product Edition filters”
Good morning Hebhansen,
- The WooCommerce categories grid display is not supported by our filters. If you use the URL filtering style, or the shortcode pages filtering, you can disable the annasta Filters > Plugin settings > Force products display option, and it will bring your category grid back, but please remember that it will not reflect the filters combination, or work in the AJAX mode!
I would like to attract your attention to the filters-supported Product categories / subcategories display option located in the annasta Filters > Product lists > Add to product list template admin section. It can compensate for the absence of the built-in categories grid display, as long as your theme/builder supports the native WooCommerce hooks. - I have just browsed through the pages of your shop, and can now see that you are attempting to base your entire filtering structure on the product categories alone. To provide an efficient filtering experience, every filter (brands, genders, styling, size, color etc.) should be based on a separate WooCommerce products taxonomy. Please click here to read about the WooCommerce attributes. They can be used, along with the WooCommerce categories and tags, as a base for separate filters. You can also use 3d-party plugins, like this one, for managing separate products characteristics.
- There doesn’t exist an option to disable the filters’ display on particular pages, you can only control the display in the Display on section of the preset admin screen.
- Appearance > Customize > Woo > Product List (I am happy with my settings and no change required). Just letting you know that Customize will dissapear for block themes as I understand it. Product List > Drop Down > Prod Cats and Sub Cats is very very very well hidden. Force Wrapper Reload must be checked? Correct or not? Categories started showing up. They do not align with product columns. On top level shop, the categories are not showing. Just a list of products.
- I think you missunderstood. Last time you checked I tried to disable filter altogether to have categories working again. I am using Attributes as described in your link. Filter button is back and you should now see Attribute filters also, such as color and more. Like I said I am running around in circles to get this fixed and I could not, so semi off became my solution. Brands Plugin might be interesting, thx. I am using Woosuite Product Swatches for colour icons and images in attributes. No conflict either as far as I know.
- Ok, Now that I am sort of seeing what I want, I can test this further.
-
This reply was modified 2 years, 3 months ago by
- The topic ‘PHP 8.0 and 8.1 Autoload not working’ is closed to new replies.