Error 500 while patching up NewsPaper 7.4 to 7.5

Posted in: Newspaper
Post count: 436

Before you start advising me to read tutorials ( https://forum.tagdiv.com/how-to-update-the-theme-2/) about correct method to upload new updates or saying to disable other plugins except for VC, Let me tell you that I am not new to this and have successfully done this before ( also while patching 7.3 to 7.4)

So, I used the given patch to upgrade from 7.4 to 7.5 via FTP ( I have been suing Filezilla for this from very ling time) as the upgrade completed. My website stopped working and gave this error

The example.com page isn’t working

example.com is currently unable to handle this request.
HTTP ERROR 500″

So, I tried to re-upload each modified files ( one by one manually) with old ( 7.4) versions and every time I checked if any particular file is causing this. But I couldn’t find the issue.
I also tried disabling the plugin, putting default .htaccess file, and functions.php but nothing worked.

Finally, I had to restore the whole site with my old backups and only then my web site started working.

I have also gone through various threads today, and many other users are facing this issue. Please tell me what should I do to patch the newest version/

🙁
Thank you.

Post count: 9544

Optimum method is apply custom changes to new files from new theme, then delete old theme, upload your new version with custom mods applied, and upload updated plugins.

Anyway thats how i do it to be safe.

Post count: 436

Oh! Yes, the method you described appears to be safe but little more time consuming.
I can’t understand why patch didn’t work while I was not using any caching or cdn before doing this upgrade.

I will surely give a try to the optimum method you suggested. Thank you Chris.

Post count: 322

I’m running into the following error after applying the 7.4/7.5 patch in dev and production.

`Access to undeclared static property: td_global::$td_options in /…/wp-content/themes/Newspaper/functions.php(22): require_once()\n#1
/…/td_wp_booster_functions.php on line 15`

That particular line goes to includes/wp_booster/td_options.php where it declares the static variable as NULL, $td_options (the options array being set up). Then checked again and both the original 7.4 source and my installation were missing the td_options.php file entirely, instead calling up td_global.php where 7.5 calls up td_options.php.

Working on it now with a full reinstall, including that file.

Post count: 322

As I was typing, the issue resolved itself. So, best I can tell, the problem is that you introduced a new file (includes/wp_booster/td_options.php) to the theme but forgot to include that file in the patch folder.

So, unzip the theme itself (Newspaper.zip inside the TF archive), then go to the above file and upload it to the correct place. Should be working then @nano2408.

Post count: 322

That missing is one problem, but apparently not the whole deal. Had a server error mess up the full theme source upload, or so I thought, but apparently some of it went through and that’s why I thought it worked just adding td_options.php. A second site I manage requried the full 7.5 Newspaper source to be uploaded. Patch no good, either way.

Post count: 436

Hey Bryson T,
Thanks for the suggestions.

I am also thinking to do a full re-install now because patch doesn’t appear to be good this time.

Thank you.

Post count: 16

Updated Newspaper 7.4 to 7.5 using the FTP method. Received same HTTP ERROR 500… Reinstalled Backup of the theme. Never had something like this before. Any news on this problem? Thx!

Post count: 436

Hello Graffa,
Actually, as Bryson said, the issue is with ” td_options.php” which is probably a new file introduced in Newspaper 7.5 under ( includes/wp_booster/td_options.php), but it’s not present in ( patch of 7.4 to 7.5).
td_options.php was also not there in 7.4 or older version but it’s been called by td_wp_booster_functions.php on line 15 in 7.5 , hence probably causing this error.

Hence, in a separate attempt.
When I uploaded all files under “wp_booster” directory from new theme 7.5 ( Because I haven’t modified any files under wp_booster so it was easy for me) and then added other files from patch 7.4 to 7.5, it worked without any error 500.

But now , I got a new error ie. Blank homepage ( Read a new thread here: https://forum.tagdiv.com/topic/urgent-help-homepage-blank-after-recent-update-to-7-5/)

In short, Unfortunately, TagDiv needs to re-work on patch this time and as “Chris” suggested in a reply, it’s a good idea to do complete theme installation ( Yup, it’s time-consuming but probably this is the only method left with us 🙁 )

  • This reply was modified 9 years by Nano.
Post count: 16

Thank you for the clarification nano2408.

I will wait for the re-work from TagDiv.

Post count: 22421

Hello,

Unfortunately the td options file was not even changed in this update. The file was present in 7.4 as well. Here is a winmerge comparison you can make yourself: http://screencast.com/t/v0gl86BI here is the td_options from 7.4 and the td_options from 7.5: http://screencast.com/t/QBtUg51mX
The patch was tested and it works properly. We have not found the cause of this error for now. but the td_options is not part of the theme update.
We have tested the patch on multiple machines and it worked as expected on all of them.
ALso there is another issue that seems to show up now and then. It’s a new anti-virus that hosts seem to start using:
Please check your server if you have ClamAV antivirus.
Here is a topic that shows this anti-virus removing theme files from your server as it detects them as a threat:
https://forum.tagdiv.com/topic/blankpage-and-no-panel/
(There is no virus in our theme and no threats. It is a false positive)
I hope this helps.
Thank you!

Post count: 16

Thank you Bogdan

My provider does not use ClamAV Software. It is very strange, every update worked since the beginning… What else could we do?

Post count: 322

@Bogdan-bScreenshot of newspaper 7.4 full source

I archive every version of the theme (since Feb 2014) carefully. I just unpacked the WP theme zip (full source) and here is what I have in /wp_booster/. Notice files are sorted alphabetically, ASC, and there is no td_options.php file in that archive. I’ve included my directory tree on the left so you can see where things are.

Not to argue or anything, but your statement appears incorrect. There is no /wp_booster/td_options.php file in 7.4, 7.3, 7.2, 7.1.1, 7.1, 7.0.1, or 7. I’ve checked my source downloads.

  • This reply was modified 9 years by Bryson T. Reason: Includes all versions from 7-7.4 missing the file in question
Post count: 22421

Hi,
Ok, it seems I have tested on a bad archive. It got modified by mistake it seems. You are right and there was no td_options in 7.4. We will investigate what is going on and come back with a precise answer as soon as possible. Until such time, please update the theme using all the files and do not use the patch for the moment.
Thank you and sorry for the inconvenience.

Post count: 69

after update i got same error when i’m clicking Theme panel Newspaper/includes/wp_booster/td_wp_booster_functions.php on line 15″

I re-updated all of newspaper files (not only update) still got that error

any suggestions?

Post count: 69

oh i fixed it with uploading all files again. 🙂

Post count: 8

I have the same problem after update from 7.3 to 7.5

Post count: 22421

Hello,

Please download the correct version of the patch from here:
http://cdn.tagdiv.com/wp-content/uploads/2016/11/patch_7.4_7.5.zip
Do not use the patch you downloaded from envato as there are missing files from it.

Thank you!

Post count: 436

Thank you, Bogdan, for carefully checking the patch and releasing the correct version of the patch. I am sure you must have updated the “download” section of Envato store too for new users who are downloading the patch now.

Though I finally had to delete the old theme and then re-install the new one and then have to do all customizations manually again. 🙂

Post count: 22421

We are sorry for the inconvenience.
We did remove the patch from the main theme package the moment we realized it was faulty.

Thank you for your understanding.

Post count: 52

After updating to version 7.7 site does not work on your computer jesynie mobile version – how to fix it ?? http://www.eswinoujscie.pl

Post count: 22421

Hello,

Please create a new topic if you have an unrelated issue. Please access your site via ftp and rename the plugins folder like this guide suggests: http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

Thank you!

Viewing 22 posts - 1 through 22 (of 22 total)
The forum ‘Newspaper’ is closed to new topics and replies.