Installing a new, custom theme has "broke" current Wordpress installation - wordpress

I've just finished creating a new custom theme based on the underscores framework, and It's ended up breaking my current wordpress installation after applying it.
Although everything is running fine on the front end, the back end is running really weird.
The following issues have presented themselves:
Trying to add a new post (either regular, or one of the new custom post types I've defined) just results in a blank page. Although the post has been created, the admin section gets stuck on the wp-admin/post.php page.
My media library no longer shows up in the media browser. Although all 6,000+ images are still there, none show up.
When logged in, it takes ages for the page to load in the Wordpress admin bar, as it appears it can no longer display the site stats (it just shows the broken image icon after it's finally finished loading in, when the new theme is selected).
I've tried to refresh the permalinks, but this hasn't worked.
Any ideas? I was hoping to re-launch my website today, but it looks like I might have to put it on hold...

Get ahold of the devs for your framework. Your experience is not an uncommon one. It has happened to my sites several times. Unless you want to tweak the php yourself, they will have to help you.

Managed to sort this out. Turns out a function I had written to add a custom field to menu items broke the entire back end. Thanks for the help everyone!

Related

Edit with Wpbakery not working after Wordpress update

I am in big trouble and I am losing my mind. I had to update wordpress, because woocommerce said I can't create variable products anymore. I did and then I noticed that Wp bakery is not working. It loads forever.
I read some topics and tried disabling guttenberg and installing classic editor. It didn't help..
Now the crazy part is that I exported project with all in one migration plugin to other server and it works... It takes a while but it works. How the hell it's possible ?
I still need to fix it and I am getting console error
Uncaught TypeError: window.vc.frame_window.jQuery is not a function
buildFromContent https://shop.marmoarc.com/wp-content/plugins/js_composer/assets/js/dist/frontend-editor.min.js?ver=6.2.0:10
build https://shop.marmoarc.com/wp-content/plugins/js_composer/assets/js/dist/frontend-editor.min.js?ver=6.2.0:10
https://shop.marmoarc.com/wp-content/plugins/js_composer/assets/js/dist/frontend-editor.min.js?ver=6.2.0:10
I really don't understand this stuff and already losing hair(okay I was losing regardless). Please help. :(
Here's what I did, it fixes the issue but can cause certain other issues. For example my page banner doesnt load the first time a user visits the site, but will load every other time.
Get a plugin called Enable jQuery Migrate Helper. It seems to be the only thing that fixes the issue above that you've mentioned.
It will allow you to edit WPbakery elements, but like I said, it may cause other little issues like the aforementioned one above. Of course, if you're not using custom code, this could be the fix you're looking for. Cheers, and good luck.

Product list randomly disappearing in Woocommerce shop page with W3TC

I manage a Wordpress page that had this issue before, but after doing some caching configuration (W3TC) the product list in shop page started disappearing more frequently. The only thing that brings it back is opening the page in page editor and pressing "update", no changes should be made. Purging all cache also does not help (pages are built using DIVI page builder).
So far I have reverted all of the changes that were made before, but that has not decreased the frequency of the issue.
Because of the store being live, I am not inclined to do plugin uninstalls as it can damage the page even more (Issues of page CSS not loading properly were seen before, purging cache helped in that case)
One thing that I thought about is making some kind of script that updates the page automatically as a temporary solution (a new site is going to be made eventually)
What could be done to either troubleshoot this issue in safe way or at least create an automatic page update script?
-WordPress 5.1.1 running Divi theme, Woocommerce version 3.5.7-
You say page "started disappearing more frequently", do you mean page is loaded but content disappears or it whole page does not load?
Try turning off Minifying in W3TC. I had this problem few times and always a problem was typo in CSS.
In W3TC in General Setting there is possibility to enable Preview mode, turn this on always before deploying. Turn on preview mode, check if everything is Ok, test, search for bugs. And only when you are sure that everything works fine then deploy it.
Thank you Vladimir for the tip about preview mode. The bug unfortunately is not in the CSS though because minifying is not enabled in W3TC.
By "disappearing more frequently" I mean Header and Footer being fine and Body being only partly loaded - Broken page screenshot
However, I have tracked down the issue to woocommerce itself. It seems like the default set shop page is the one crashing regularly. I did not find solution to the initial problem, but I found a trick that works, at least for now.
I created a new Shop page, but instead of linking it in Woocommerce settings, I just included a [products] shortcode. The previous page is still active, but not visible to user. Even if the shop page itself crashes, products are still visible and purchases are possible.

Link blocks to composer in Concrete5

I'm just playing about with an offline copy of Concrete5 and was wondering if there is any way to link blocks to the composer system to make them work? I made a page template hoping I could just click 'new page' and select my template to add it to the right area of my test site, but it won't show up. I then tried to edit a preset page template from my theme, and that worked fine... except it still populates the new page with the original blocks.
It seems like a total nightmare to do anything in this system. Should I be using a different one if I can't even do this?
I am not sure I fully understand your question but have you had a look at this tutorial? It might help https://documentation.concrete5.org/tutorials/setup-a-simple-blog-within-concrete-5-7

Customizing search results template in Plone 4.3

I'm trying to make just basic structural changes to the search.pt template (under portal_view_customizations — plone.app.search/search.pt). I load this up from portal_view_customizations, hit "customize" at the bottom, and make any sort of changes*. If I do a search on the page after altering the template, it prompts for a username and password.
I'm not getting any errors and can't quite figure out what might be the issue. Is there some workflow or publishing process I'm missing for within /portal_view_customizations? I've been able to edit other things within there like portlet templates without this issue popping up.
Thanks a lot. Non-urgent, but I'm perplexed. :)
*(by any change, I mean I went in and added just a class on the around the brief description — no dice. Tried changing just some of the template text "filed under" after that, still nothing.)

Drupal - saving created pages and page edits leads to an incorrect, blank page

Sorry if this is a bit vague...
I have a Drupal install (6.14), and when I now either create or edit a page I'm led to a blank screen once I hit 'save'. It seems to return you to a blank version of .../node/add/page (when creating a page), rather than taking you to the actual created node.
Also, I notice that when editing a page, the url contains extra elements, e.g. /node/151/edit?destination=admin%2Fcontent%2Fnode
, whereas I'm pretty sure before it used to be just: /node/151/edit
My other Drupal sites seem to be running fine, and I've attempted to disable recently added modules, run cron, cleared cache etc. to no effect. Incidentally, when I run cron manually it also returns a blank page.
Please, any ideas?
James
http://drupal.org/node/158043

Resources