Ahsaniqbalkmc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: call_user_func_array () error after updating to wordpress 3.6I am only interested in keeping the styles and other modifications of the current theme I am using.
If such a thing is possible using a child theme, then certainly I can go for it.So I would ask a simple noob question: Is it possible that I adapt the “child theme” thing and the look and feel of my website doesn’t change at all. ?
Forum: Fixing WordPress
In reply to: call_user_func_array () error after updating to wordpress 3.6I tried disabling the plugins (not exactly as you described it) but it didn’t work for me.
And I cannot change the theme because I has some extensive modifications suited to my website.
Forum: Fixing WordPress
In reply to: call_user_func_array () error after updating to wordpress 3.6But for me to update to 3.6, I first need to get rid of this error… Or at least know what could be possibly causing it so that i can work on it to find the solutions…..
But so far, I haven’t had any thoughts on what is causing this error
Forum: Fixing WordPress
In reply to: call_user_func_array () error after updating to wordpress 3.6Update:
I reverted back to 3.5.2 and everything is working fine now…The next question that comes in my mind is that “Is update from 3.5.2 to 3.6 a major update” i.e. Is it absolutely necessary that I do this update…??
Forum: Fixing WordPress
In reply to: call_user_func_array () error after updating to wordpress 3.6I have deactivated all the plugins… But the error is still there. Worst part is that I can’t reactivate them now… When I try to reactivate a plugin, I get the following error…
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_canonical_charset' not found or invalid function name in /home/mananato/public_html/wp-includes/plugin.php on line 173 Warning: Cannot modify header information - headers already sent by (output started at /home/mananato/public_html/wp-includes/plugin.php:173) in /home/mananato/public_html/wp-content/plugins/w3-total-cache/lib/W3/Referrer.php on line 35 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_canonical_charset' not found or invalid function name in /home/mananato/public_html/wp-includes/plugin.php on line 173 Warning: Cannot modify header information - headers already sent by (output started at /home/mananato/public_html/wp-includes/plugin.php:173) in /home/mananato/public_html/wp-includes/pluggable.php on line 875
My website is in a really really bad shape now… Plz someone help
Forum: Fixing WordPress
In reply to: Fatal error: Allowed memory size of 33554432 bytes exhaustedAdding the line “define(‘WP_MEMORY_LIMIT’, ’64M’);” to my wp-config.php has not worked for me so I have contacted my host about the issue. Lets see what they have to say about it.
I followed the link provided by @esmi. I read it and followed the instructions listed there. And guess what, it worked.
In short, all I had to do was make sure there are no empty spaces before the <?php and after the ?> in the widget-logic.php file. The thing is that the “is_child” function is in separate <?php tags and I guess there were some spaces before the opening <?php tag. When I deleted these spaces, the error just flew away.
So thankyou esmi…
Forum: Plugins
In reply to: Custom code added to a wordpress loop doesn't get responseSorry!
I added the
<strong></strong>
around the<p>[toc]</p>
to make it bold only in this post. It is not present in the actual content of my page so please take it out of the consideration.Forum: Plugins
In reply to: Custom code added to a wordpress loop doesn't get responseHere is the link to the code of the plugin:
https://pastebin.com/HimkZF69
And here is the link to my website’s page where I have added the table of contents custom tags:
https://www.techno99.com/search-engine-optimization-tools/When you go to the page, you would see two table of contents displayed. These, I have manually added to the content of the page. By content of the page, I mean the actual post itself.
The “[toc]” displayed at the top is the code I added to the wordpress loop. The plugin failed to respond to it.
It is added as shown below:<?php get_header(); ?> <div id="content"> <div id="postarea"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="postcontent"> <div class="postcontent_in"> <div class="post"> <h2><?php the_title(); ?></h2> <div class="post"> <strong><p>[toc]</p></strong> <?php the_content(__('Read more'));?> </div> <div class="clear"></div> </div> </div> </div> <?php endwhile; else: ?>
As you can see in the code above, I have added
<p>[toc]</p>
because when you see the coding of the plugin, you would find that it searches for the string<p>[toc]</p>
and not simply [toc]. But this also doesn’t work.Ya!
Problem solvedoh!
I created an empty index.php and now the theme is appearing.
I guess index.php is essential for the theme, irrespective of whether someone uses it or not.In fact, I am creating the theme for absolute static website so I don’t need any index.php file. page.php will do it all for me. That is why I haven’t created any index.php.
Forum: Fixing WordPress
In reply to: Can't find .maintenance fileI was in the situation as well. I tried to find .maintenance file but there was none. Then when I was backing up all my data, the problem fixed automatically and the maintenance mode was no more there.
I don’t really understand the actual mechanism behind that but I think there is some time dependent function which takes the site into maintenance mode during update.
I hope someone with more knowledge pops in.
Forum: Plugins
In reply to: Looking for plugins which can "Defer Loading of Javascript",I am trying to make my website (MANanatomy.com) more efficient. I ran google page speed online test and it showed me that I should defer parsing of javascript. I don’t have any technical knowledge about this but everything is possible with wordpress. And now I am looking for a plugin that can do it for me. I read somewhere that w3 total cache can do this but after reading cynthia313’s comment, I am worried a bit.
Forum: Fixing WordPress
In reply to: how to add menus to pagesFirst of all you need the “Widget logic plugin”. It allows you to display certain widgets on certain pages only. Install this plugin and activate it. Afterwards, create two different menus. One for the bikes page and one for the cars page. In the widgets section of your appearance tab, drag two custom menus onto active widgets area and enter appropriate code for the widget logic.
On my website Human Anatomy, which is also based on pages instead of posts, I have done the same trick. On the basic anatomy section, I wanted to display only pages that are related to basic anatomy of human body. So I noted the ID of the page basic anatomy and entered the following line in the widget logic area of the custom menu.
is_page(page id) || is_child (page id)
This tells wordpress to show the current menu of the page having “page id” you enter and also on all children of the current page.
I hope you would extract something out of my reply.