A few wordpress errors

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
8,712
Reaction score
10,279
I made a thread a few minutes ago about a Wordpress error - https://www.blackhatworld.com/seo/wordpress-warning-a-non-numeric-value-encountered.1182366/

That was swiftly resolved, so I'll start a new thread to keep things tidy.

I have a few more errors I just noticed. The website seems to work fine, but these errors are just appearing in the admin area and I hate seeing them. Plus who knows what potential problems they hold if not resolved.

Here they are:

M_Bulk_Installer_Skin::before() should be compatible with Bulk_Upgrader_Skin::before($title = '') in /home2/user/Site.com/wp-content/themes/ready-review/class-tgm-plugin-activation.php on line 1595

Warning: Declaration of TGM_Bulk_Installer_Skin::after() should be compatible with Bulk_Upgrader_Skin::after($title = '') in /home2/user/site.com/wp-content/themes/ready-review/class-tgm-plugin-activation.php on line 1595

Warning: Cannot modify header information - headers already sent by (output started at /home2/user/Site.com/wp-content/themes/ready-review/class-tgm-plugin-activation.php:1595) in /home2/user/Site.com/wp-admin/includes/misc.php

In class-tgm-plugin-activation.php on line 1595 I have this - https://pastebin.com/ynxCZbP9 (sorry the forum won't let me post here)

Any ideas why I have these errors?

@Nana Dada @TiagoS @Gogol
 
It seems like M_Bulk_Installer_Skin and Bulk_Upgrader_Skin are requirements for this theme.

Make sure to install both latest versions of these plugins or the exact version the theme requires. Looks like there's a version mismatch between those two.
 
The third error is because of the first two errors. If you fix the first two, it will be gone.

As for the first two, judging by your paste bin code; I assume that the before() method expects 0 parameters. You are passing $title.. Don't pass it and it should be fine. I don't know how you called the method in your code, but it would be something like:
Code:
M_Bulk_Installer_Skin::before()
instead of
Code:
M_Bulk_Installer_Skin::before($title_or_something)
Wild guess though. :p
 
It seems like M_Bulk_Installer_Skin and Bulk_Upgrader_Skin are requirements for this theme.

Make sure to install both latest versions of these plugins or the exact version the theme requires. Looks like there's a version mismatch between those two.

Well I'll be damned. See, I would go for what you said, but there shouldn't be anything missing as far as requirements go, because I used a plugin called Updraft to backup my site from my old hosting, and then I used the same plugin to import the site in the new hosting. What I mean is, all the files and folders and plugins and everything is 100% the same as it was before. And I didn't have these errors before.

In any case, I solved it. Using this - https://github.com/TGMPA/TGM-Plugin-Activation/issues/151

What that guy wrote there solved my problem. All 3 errors are gone. And I checked other pages in the admin area and on the site, and there's no errors anywhere.

Kickass!!! :D

 
The third error is because of the first two errors. If you fix the first two, it will be gone.

As for the first two, judging by your paste bin code; I assume that the before() method expects 0 parameters. You are passing $title.. Don't pass it and it should be fine. I don't know the you called the method in your code, but it would be something like:
Code:
M_Bulk_Installer_Skin::before()
instead of
Code:
M_Bulk_Installer_Skin::before($title_or_something)
Wild guess though. :p

Well you were right about it, I fixed the first 2 errors and the 3rd disappeared.

I fixed the errors by doing this - https://github.com/TGMPA/TGM-Plugin-Activation/issues/151

I'm checking now clicking on all the pages in the admin area and I see no more errors :)

How does that solution look to you? Should I anticipate future/functionality problems because of what I did?
 
Well you were right about it, I fixed the first 2 errors and the 3rd disappeared.

I fixed the errors by doing this - https://github.com/TGMPA/TGM-Plugin-Activation/issues/151

I'm checking now clicking on all the pages in the admin area and I see no more errors :)

How does that solution look to you? Should I anticipate future/functionality problems because of what I did?
The variable looks like title to me... So, I dont think it will hurt much.
 
Well I'll be damned. See, I would go for what you said, but there shouldn't be anything missing as far as requirements go, because I used a plugin called Updraft to backup my site from my old hosting, and then I used the same plugin to import the site in the new hosting. What I mean is, all the files and folders and plugins and everything is 100% the same as it was before. And I didn't have these errors before.

In any case, I solved it. Using this - https://github.com/TGMPA/TGM-Plugin-Activation/issues/151

What that guy wrote there solved my problem. All 3 errors are gone. And I checked other pages in the admin area and on the site, and there's no errors anywhere.

Kickass!!! :D


I use updraft too on all my sites. So this is valuable to me as well. Thanks for the feedback.
 
I use updraft too on all my sites. So this is valuable to me as well. Thanks for the feedback.

Awesome fucking plugin isn't it :D

I also use it on all my sites for years now.

The only issue... probably also because I'm on a shitty shared server... is when I'm downloading a backup usually all my sites go dead until the download is completed. And in fact the last backups I did of a site that had a 500MB Uploads folder, at about 300MB the download would fail, and all my websites would become inaccessible for 15-30 minutes, giving a 504 error... maybe 505 error... one of those errors anyway.

So I went into Updraft settings advanced and made the max size of folders be smaller. Then the 500MB + 167MB folders I had to download became about 200MB each, and downloaded fine without fail.

Anyway, just thought I mention it :)
 
Awesome fucking plugin isn't it :D

I also use it on all my sites for years now.

The only issue... probably also because I'm on a shitty shared server... is when I'm downloading a backup usually all my sites go dead until the download is completed. And in fact the last backups I did of a site that had a 500MB Uploads folder, at about 300MB the download would fail, and all my websites would become inaccessible for 15-30 minutes, giving a 504 error... maybe 505 error... one of those errors anyway.

So I went into Updraft settings advanced and made the max size of folders be smaller. Then the 500MB + 167MB folders I had to download became about 200MB each, and downloaded fine without fail.

Anyway, just thought I mention it :)

I tell updraft to upload all the backups to Amzon S3. Works like a charm and S3 downloads are lightning fast.
 
I tell updraft to upload all the backups to Amzon S3. Works like a charm and S3 downloads are lightning fast.

Eh.. I don't know, I like to keep things "physical" :D

Download on computer, upload file. Old school shit :p
 
Eh.. I don't know, I like to keep things "physical" :D

Download on computer, upload file. Old school shit :p

Try S3. You'll never worry about it again.

It's still physical, except your backup is going up and down a 1000 gbps line instead of clogging up your shared host.

PS. You can still download it to your PC from S3, 100x faster than any host.
 
Try S3. You'll never worry about it again.

It's still physical, except your backup is going up and down a 1000 gbps line instead of clogging up your shared host.

PS. You can still download it to your PC from S3, 100x faster than any host.

Interesting.

Well I'll keep that in mind to check it out at some point. Right now I don't even have time to breathe, so I'll look into that later.

Thanks :)
 
Okay, so I fucked up.

When I migrated my 2 wordpress sites a month ago I forgot that I should be using an older version of wordpress. That is to make sure all my plugins work, but also to avoid the guterberg post editor that came straight outta hell. So I installed wordpress, uploaded my backups, fixed a few errors that popped up, and moved on.

Now I figured out my mistake when I went to write an article and saw the guteberg shit editor.

On one site I installed the wp-downgrade plugin, downgraded to an old version of wordpress, and it's all good, it worked fine just fine.

On my other site, however, it did not. Downgrading broke the site. So I removed the site, did a fresh installation of wordpress, and immediately used the wp-downgrade to downgrade. That did not work, it broke the site (weird). So I had to take the road less traveled and install an older version of wordpress manually. I did it, then uploaded my backup. It took forever to upload a measly 100MB of stuff.

I uploaded everything except the database, and it worked. Then I uploaded the database, and it broke the site. I saw the error, deleted the plugin (from cPanel -> file manager) and it threw a different error, I deleted that plugin too, and then another one. Then the site worked again. So I used wp-downgrade to update the site to the last version of wordress (4.9.8) that didn't force guteberg up my ass. Then I reuploaded my plugins again (because I had deleted a few previously).

And so that pretty much fixed it. My site loads fine, my post editor is the classic one, and I'm a happy camper... at least for now... you never know what errors may pop up because of this "adventure" as time goes by.

So learn from my mistakes. The lesson? Don't make any fucking mistakes!!! :D
 
Well damn. Everything seems to work now, but I get a 500 Error page every few refreshes. WTF??
 
Server overload? ;)

Not sure. We'll see if it continues.

So I thought I was done, but I wasn't. I had a plugin that did not want to activate because the PHP version I'm using is below 5.6.

But I can't set my entire hosting (all sites) to work with 7.1 version, because it breaks a few things on a few sites.

So I sat in hostgator cpanel area and changed every fucking folder (some 50 folders) in that plugin to version 7.1, not sure if it would work. I had to do it 1 by 1 folder with a refresh between each activation and navigating to the folders etc, ughhh. Before that I changed that site's main folder to 7.1. And it didn't work. Then I changed the main Plugins folder to 7.1, still nothing. Then I changed wp-content to 7.1, and finally the plugin allowed me to activate it!

Then the 3 errors that I reported in this thread original post actually appeared again, so I solved them again like before.

Then I tested the plugin (it's an autopost to twitter plugin), and it worked, yay :)

Goddamnit!

Ok now it's all done... well.. we'll see...

oh.. I just noticed this error appeared again haha - https://www.blackhatworld.com/seo/wordpress-warning-a-non-numeric-value-encountered.1182366/
 
Back
Top