Knightycool
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8Thanks a lot. You are great. Loves from Turkey..
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8Ok. This is what i did:
1) Added back the comment line.
2) Check to see the warning happens. And it happened when i visit the post.
3) I installed beta
4) Visited the post and there is no warning. I think it is fixed.
Thanks a lot. What have you changed exactly? May you show me line? And when a new update comes, i can just update this via wordpress right?
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8umm ok, the notice has already disappeared but i will re enter the comment and then install the beta and try to see what happens.
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8If you want, i can add back the comment and email you the url but i dont want to post the url here.
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8It was the reason because the said comment was inside <style> </style>
<style>
.myclass {
font-size: 10px;
background-color: red;
}
.myclass2 {
height: 100px;
width: 100px;
}
/*! CSS Used from: https://www.mysite.net/wp-content/myapp.css ; media=all */
.myclass3 {
border-color: black;
}
</style>Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8Ok i get it now. I added the id number and could pinpoint where it happened…
In the custom css of a single page (where it happens), there is a comment like this:
/*! CSS Used from: https://www.mysite.net/wp-content/myapp.css ; media=all */
So it matches media=all
I removed it and try to see if the warning happens again. Perhaps you may find a way to capture media=all only if its between certain html tags.
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8Is there a way to learn in which post this happens?
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8ok here is an update
Normally the entry in the error log is like this:
[17-Apr-2021 12:31:52 UTC] Array
(
[0] => media=’all’
[1] => all
)`BUT sometimes it becomes this:
17-Apr-2021 12:32:22 UTC] Array
(
)[17-Apr-2021 12:32:22 UTC] PHP Warning: Undefined array key 1 in /var/www/mywebsite/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 276`
- This reply was modified 3 years, 10 months ago by Knightycool.
- This reply was modified 3 years, 10 months ago by Knightycool.
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8I added this line up to the original line:
error_log(print_r($medias[1],true));
$medias = explode( ‘,’, $medias[1] );And i’ll check the error log.
Forum: Plugins
In reply to: [Autoptimize] Undefined array key 1 in PHP 8itemprop, viewbox (for svg),
Forum: Themes and Templates
In reply to: [GeneratePress] Image and Youtube Videos Not DisplayingI think it has to do with one of the plugins, a lazy load plugin perhaps?
Thanks
Vielen dank, mein Bruder ??
Forum: Plugins
In reply to: PHP in Tablepress not workingTobias i also have a question:
I have a tablepress table but the header and the the rows below are not in line.. Here is the picture
As you see, header borders and the column borders are not in line.