Update from 7.3 to 7.5 breaks website

Posted in: Newspaper
Post count: 92

Hi team,
I’m trying to update Newspaper 7.3 to 7.5. I deleted the Newspaper 7.3 folder from my cPanel in my hosting account due to an error with the WP interface.

I was, however, able to upload 7.5 using the WP theme uploader, but when it uploaded, it broke my theme. I wasn’t even able to access my WP dashboard. Just a white screen.

I was fortunately able to quickly reinstall my backup Newspaper 7.3 to keep my site running and also get my WP dashboard back.

Questions:
Any ideas about why this might be happening? Or other suggestions? Perhaps I should upload the theme directly to my hosting account? Would that be any different?

Open to suggestions. Thanks guys.
Cheers

Post count: 92

More information:
I also tried uploading 7.5 to my theme folder via the cPanel and, once activated, it still broke both my website and my WP dashboard.

Is there a way for me to just manually upload the changed files from 7.3 to 7.5?

I know there were quite a few modified files and new files, so I’m not sure how feasible this is.

I’m using WP Rocket Cache plugin with Stackpath CDN. Would these play a role in this problem?
I’m also using the Newspaper child theme but wondering if there were any changes in this from 7.3 to 7.4?

I also tried uploading the theme to a different website and it also broke the site and the WP dashboard (i.e., just a white screen with no way to access anything).

Thanks in advance.

  • This reply was modified 9 years by MESOTU.
  • This reply was modified 9 years by MESOTU.
Post count: 92

Hi guys,
I think I figured out the problem. I had previously created a custom menu so I could add some additional items to my mobile menu (here’s what I did: https://forum.tagdiv.com/topic/where-do-i-edit-the-mobile-menus-options/)

I modified td_menu.php and menu-mobile.php before installing and that appears to have broken the theme. When I uploaded 7.5 out of the box, it worked, but when I added in my customisations, it broke the theme again.

So my question now is how do I add custom menu by modifying td_menu.php and menu-mobile.php. I think these were modified since 7.3 so these customisations are no longer valid.

Thanks

Post count: 22421

Well the code got changed so your customization is no longer correct. This is the problem with altering the theme files. Updating a theme means replacing the code. Code gets updated and modifications were made on the old code.
If you want to have a different menu on mobile phones, you can simply use the mobile theme plugin now and you will already have a custom menu for mobile phones.

Thank you!

Post count: 92

Hi Bogdan,
I choose not to use the mobile theme plugin since I don’t like how it renders.

What would be the changes I’d need to make to this code in order to keep my custom menu?

(From: https://forum.tagdiv.com/topic/where-do-i-edit-the-mobile-menus-options/)
4. You can make a add a new menu for mobile only editing theme’s code as follows:
– edit td_menu.php and add this line of code here: http://screencast.com/t/Rf59isOchm
‘custom-menu’ => ‘Custom menu for mobiles’
– edit menu-mobile.php and add thei code here: http://screencast.com/t/ybU3TZ4yLhvu
wp_nav_menu(array(
‘theme_location’ => ‘custom-menu’,
‘menu_class’=> ‘td-mobile-main-menu’,
‘fallback_cb’ => ‘td_wp_no_mobile_menu’,
‘link_after’ => ”,
‘walker’ => new td_walker_mobile_menu()
));

Thanks in advance guys. Love your work.

Cheers

Post count: 22421

Hello,

You do not have to make any change to the code. I just tested this again on my end. It works as expected. Please use the implementation you describe and place the code exactly as suggested in the topic you mention.

Thank you!

Post count: 92

Thanks Bogdan,
I’m really impressed with you guys and the great work you do. I figured it out. It was a single comma that was breaking the theme! I did a bit of trouble shooting on a subdomain so I wouldn’t break the main site. I got 7.5 working and the customisations I wanted. Keep up the good work amigo!
Cheers!!

Post count: 37

Hey Mesotu,

How did you reinstall your backup 7.3 after your site broke? Did you delete the uploaded theme from cPanel and WordPress automatically chose another theme? or did you do the other way. This sounds helpful if it may occur with me in future.

Thanks!

Post count: 92

Hi John,
Thanks for your question. I deleted the theme from my hosting account cPanel. I made a backup copy to a different folder and restored it quickly when I botched it the first couple times (stupid coding error on my part).

I did the following steps if you want the play by play:

1) Make sure you have full access to your hosting cPanel account.
2) Go to your domain folder (public_html/john) and create a temp folder there. I just created a folder named temp_copy so it would be public_html/john/temp_copy.
3) Then I went to my wp-content/themes/ folder, highlighted Newspaper, right clicked, chose “copy” and then when it asked me where I wanted the copy to go, I made sure it said public_html/john/temp_copy.
4) Then go to your temp folder and you’ll see Newspaper there. Rename it Newspaper_73. Now you’ve got your copy that DEFINITELY works.
5) Then go to your WordPress dashboard/appearances/themes and choose another theme.
6) Go back to your hosting account cPanel, delete Newspaper from your wp-content/themes folder.
7) Go back to WordPress dashboard and upload Newspaper 7.5. Or you can upload the .zip file and deploy it in your themes folder via cPanel (or FTP).
8) I then went back to WordPress and activated Newspaper 7.5
9) When I broke my site the first couple times due to my own coding mistake, I was able to quickly delete the broken 7.5 theme and then do a restore of 7.3 from my temp file (using the same method as in step 3 above).

Hope this helps!
Cheers

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