After update to 4.2.1 – empty page
-
After upgrading to version 4.2.1 I’m only getting a white page in the frontend. If I’m deavtivating the plugin, the site is working…
Please fix the problem. Thx.
The page I need help with: [log in to see the link]
-
Hi @fitnsexy,
Plugin seems to be working normally for me so I’m going to need some more details from you in order to help. Please:
- Go to Settings > WordPress Popular Posts.
- Append
&tab=debug
to the URL in the address bar of your browser and hit enter. - Copy the contents of your Debug screen and share them here.
Also, I’ll need to see the contents of your
debug.log
file:- In your
wp-config.php
file, setWP_DEBUG
totrue
. - Add the following lines to your
wp-config.php
file anywhere before the/* That's all, stop editing! Happy blogging. */
line:define('WP_DEBUG_DISPLAY', false); define('WP_DEBUG_LOG', true);
- Visit your site. If everything went correctly, you should have a
debug.log
file in yourwp-content
folder. Copy its contents and share them here (remember to use thecode
button to wrap its contents!)
The page works if the plugin is disabled, as soon as it should show posts I get a white page.
There you go:
Debug
PHP version: 5.6.38
PHP extensions: Core, date, ereg, libxml, pcre, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, limiter, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, json, exif, mcrypt, mysqlnd, mysqli, mysql, openssl, pcntl, PDO, pdo_mysql, zlib, posix, pspell, readline, shmop, SimpleXML, soap, sockets, sqlite3, pdo_sqlite, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xml, xmlwriter, xsl, wddx, zip, Phar, SourceGuardian, mhash, ionCube Loader, Zend Guard Loader
Database version: 5.7.19
InnoDB availability: YES
WordPress version: 4.9.8
Multisite: No
External object cache: No
WPP_CACHE_VIEWS: No
Active plugins: affilinet Performance Ads 1.9.5, All-in-One WP Migration 6.81, All In One WP Security 4.3.7.2, Amazon Affiliate for WordPress 3.8.8, Amazon Associates Link Builder 1.8.0, AmazonSimpleAdmin (ASA1) 1.3.2, amr shortcode any widget 3.6, AntiVirus 1.3.9, BackWPup 3.6.6, blogfoster Insights 1.0.6, CC Cookie Consent 1.2.0, Check and Enable GZIP compression 1.1.11, Clear Cache For Me 1.0, Coming Soon Page & Maintenance Mode by SeedProd 5.0.23, Disable Gutenberg 1.4, Embed videos and respect privacy 1.1, Google Analytics Dashboard for WP (GADWP) 5.3.7, Google Analytics for WordPress by MonsterInsights 7.3.2, Google Analytics Opt-Out 2.2.3, Google XML Sitemaps 4.0.9, Hotfix 1.0, Insert Headers and Footers 1.4.3, Instagram Feed 1.10.2, JCH Optimize 2.3.2, Link Indication 4.4, McAfee SECURE 1.7.7, NextGEN Gallery 3.1.1, NextScripts: Social Networks Auto-Poster 4.2.8, Optimus 1.6.0, PayPal Buy Now Button 1.7.2, PHPEnkoder 1.14.1, Shariff Wrapper 4.5.2, Simple Local Avatars 2.1, Social Media and Share Icons (Ultimate Social Media) 2.0.9, Stealth Login Page 4.0.0, TablePress 1.9.1, TinyMCE Advanced 4.8.0, Ultimate Nofollow 1.4.7, UpdraftPlus – Backup/Restore 1.15.7, Widget Visibility Without Jetpack 1.2, WordPress Importer 0.6.4, WordPress Popular Posts 4.2.1, WP-Optimize 2.2.6, WP AdminTools 1.3.9, WPForms Lite 1.5.0.1, WP htaccess Control 3.5.1, WP Migrate DB 1.0.8, WP Sitemap Page 1.6.1, WP Super Cache 1.6.4, WP Super Cache – Clear all cache 1.4, Yoast SEO 9.2.1
Theme: FitnessMag (1.4) by WPExplorer
debog.log, see below:
`[06-Dec-2018 15:11:39 UTC] PHP Strict Standards: Non-static method WP_Hotfix_Controller::init() should not be called statically in /var/www/web24574932/html/fitnsexy/wp-content/plugins/hotfix/hotfix.php on line 11
[06-Dec-2018 15:11:39 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_social_widget ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:39 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_video ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:39 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_recent_posts ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:39 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_flickr ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:39 UTC] PHP Strict Standards: Non-static method WP_Hotfix_Controller::init() should not be called statically in /var/www/web24574932/html/fitnsexy/wp-content/plugins/hotfix/hotfix.php on line 11
[06-Dec-2018 15:11:40 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_social_widget ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:40 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_video ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:40 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_recent_posts ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:40 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_flickr ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:40 UTC] PHP Catchable fatal error: Argument 1 passed to WPP_Output::get_permalink() must be an instance of int, string given, called in /var/www/web24574932/html/fitnsexy/wp-content/plugins/wordpress-popular-posts/includes/class-wordpress-popular-posts-output.php on line 168 and defined in /var/www/web24574932/html/fitnsexy/wp-content/plugins/wordpress-popular-posts/includes/class-wordpress-popular-posts-output.php on line 290
[06-Dec-2018 15:11:44 UTC] PHP Strict Standards: Non-static method WP_Hotfix_Controller::init() should not be called statically in /var/www/web24574932/html/fitnsexy/wp-content/plugins/hotfix/hotfix.php on line 11
[06-Dec-2018 15:11:44 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_social_widget ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:44 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_video ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:44 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_recent_posts ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:44 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_flickr ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:45 UTC] PHP Strict Standards: Non-static method WP_Hotfix_Controller::init() should not be called statically in /var/www/web24574932/html/fitnsexy/wp-content/plugins/hotfix/hotfix.php on line 11
[06-Dec-2018 15:11:45 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_social_widget ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:45 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_video ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:45 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_recent_posts ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:45 UTC] PHP Notice: Die verwendete Konstruktor-Methode für WP_Widget in wpex_flickr ist seit Version 4.3.0 veraltet! Verwende stattdessen__construct()
. in /var/www/web24574932/html/fitnsexy/wp-includes/functions.php on line 3916
[06-Dec-2018 15:11:45 UTC] PHP Notice: Undefined index: custom_bg in /var/www/web24574932/html/fitnsexy/wp-content/themes/wpex-fitnessmag/admin/classes/class.options_machine.php on line 476Thanks @fitnsexy!
From all of the error messages you have there, only one is related to WPP.
With the plugin disabled, try this:
- Go to Plugins > Editor and select WordPress Popular Posts from the dropdown.
- Click on
includes/class-wordpress-popular-posts-output.php
to edit that file. - Find
private function get_permalink( int $post_id ) {
(around line 290) and change it toprivate function get_permalink( $post_id ) {
. - Click on Update file to save changes.
- Reactivate WPP and visit your site to check if this fixes the issue.
Please report back your results.
Actually, scratch what I said in step 3. Do this instead:
Find:
// Permalink $permalink = $this->get_permalink( $post_id );
and change it to:
$post_id = (int) $post_id; // Permalink $permalink = $this->get_permalink( $post_id );
Unfortunatelly it’s not working. Same as before.
Yep, it’s because you’re using PHP 5. That’s why I didn’t notice the error before (I’m using PHP 7). This is the problem, actually.
A fix is already on the way, please upgrade as soon as it’s out.
Thanks for reporting!
Where can I download the old version 4.2.0?
Allright, thx! I’m waiting for it. Great support by the way!!
Version 4.2.2 is out! You should be getting an update notification in your Dashboard soon.
Great support by the way!!
Thanks! If you’re up for it, please consider leaving a review. Reviews help other users tell whether a plugin (and its support team, in this case it’s me) are worth their consideration & time ??
Oh, and please don’t forget to report if version 4.2.2 actually fixes the issue (it should, just want to confirm).
It’s working. Thx man!!
Don’t mention it ??
:-.) One more question. How can I change the colours of the links, so that they are looking the same as the others on the right side of my page like this: https://gyazo.com/24eb086d98f08ffaa50d138e30eb301a
Or better, exactly the same ?? What do I have to put in the custom html code?
Well, you could:
A) Force WPP links to use the same colors:
.wpp-post-title { color: #333 !important; }
or,
B) Have the WPP widget use the exact same code structure as your Recent Posts widget (and then it’ll look exactly the same):
- Set Before / after Popular Posts to
<ul class="recent-posts-widget clearfix">
and</ul>
, respectively. - Set Post HTML Markup to:
<li class="clearfix"> <div class="alignleft"> <a href="{url}" title="{text_title}"> <img src="{thumb_url}" alt="{text_title}"> </a> </div><!-- /alignleft --> <h5> <a href="{url}" title="{text_title}">{text_title}</a> </h5> <div class="recent-post-date">{date}</div> </li>
- Hit Save to apply changes.
- If you have a caching plugin installed, now would be a good time to flush its cache.
That’s it!
- The topic ‘After update to 4.2.1 – empty page’ is closed to new replies.