I am getting the following error when I want to access the wp-admin sites of my wordpress installation:
Fatal error: Cannot redeclare send_confirmation_on_profile_email() (previously declared in /wp-includes/user.php:2624) in /wp-admin/includes/ms.php on line 423
I looked around but couldn't find any help yet. Maybe someone of you knows how to fix this error.
Thanks.
It seems send_confirmation_on_profile_email() function is used more than once. So what you need, is to find that function and rename it to its relevant name but make sure it does not match with the send_confirmation_on_profile_email
Related
It seems that the error I' posting about is quite common indeed, but as I know very little of php, I need to ask you shed further light on the following problem.
On my website, after a Wordpress update, the following error is displayed:
Fatal error: Call-time pass-by-reference has been removed in [...website...] on line 4.
Actually, the file the error refers t has the following code:
if (!empty($catid)) {
$Anno=0;
$Mese=0;
Pasw13_MeseAnnoCorrenti(&$Anno,&$Mese);
$ArchiviMesiAnno=Pasw13_ElencoAnniMesi("mesi",$catid,$Anno);
$ArchiviAnni=Pasw13_ElencoAnniMesi("anni",$catid,$Anno);
if (!empty($ArchiviMesiAnno) Or !empty($ArchiviAnni)){
As I've said, the error is on line 4, but I can't solve it out.
Thanks in advance for your help
Regards
kowalski215
This error happens because of &$in function call which is deprecated, remove & and your code should work.
Meaning that you should change:
Pasw13_MeseAnnoCorrenti(&$Anno,&$Mese);
to
Pasw13_MeseAnnoCorrenti($Anno,$Mese);
More information about error happening with wordpress can be found here - link
Fatal error: Call to undefined method Exception::getClass()
Simply! You are calling a function which is not available
I assume it's OpenCart error. It might be seen after new extension is added or after OC version update as they recently changed some file paths.
The URL probably looks like:
http://example.com/index.php?route=exampleA/exampleB/exampleC
You need to correct the route. Start adding extension in front. It works in some cases.
The updated URL would be:
http://example.com/index.php?route=extension/exampleA/exampleB/exampleC
If that works fine, you need to correct path in your extension source. If not keep searching in documentation.
If you work with cart.php it was moved from system/library/cart.php to system/library/cart/cart.php together with some other files. Good luck and try to give us more details in the future.
When I am saving simple products from the magento backend, the screen goes blank.
The error I am getting is
Fatal error: Call to a member function getStores() on a non-object in /home/public_html/app/code/core/Mage/Catalog/Model/Url.php on line 155
Any help would be much appreciated.
Thanks
Your Mage::getResourceModel('catalog/url') returns a non-object - check whether it is missing or rewritten by any 3-rd party module.
Latter can be done by searching the *.php files in the directory for this string: "extends Mage_Catalog_Model_Resource_Url"
I've just been racking my brain over this one so I hope someone would kindly help me out if possible.
My site is broken right now - it's only showing this error "Fatal error: Call-time pass-by-reference has been removed in home/***/public_html/wp-content/themes/agency/library/init.php on line 31."
I am not able to get to the WordPress admin login or anything. This occurred when I attempted to update the a WordPress theme.
While trying to research an answer, I came across tons of people having this similar error. Most people were able to fix it by removing & out of said line of code in said php file of the error (in my case it would be line 31 of init.php). This unfortunately did not work for me.
I also tried renaming the Agency theme folder to see if WordPress would load up a different default theme. It did not. I got the same error. I also tried deleting the theme folder via FTP. Even though it was deleted, I still got the same error.
I also tried disabling plugins by renaming the plugin folder. No luck there either.
What could it be that I am missing here? Do I need to delete the theme folder from cPanel perhaps? I am incredibly boggled by how I seem to get the same error from a theme folder that doesn't exist (after I deleted the folder).
I would greatly appreciate any assistance with this error. Here is the code the error is referencing - I put the &s back in since it did not seem to matter whether they were there or not.
28 function agency_nav_menu_objects($items) {
29
30 foreach ($items as &$item) {
31 if ( agency_get_menu_object_items($item->ID, &$items) ) {
32 $item->classes[] = 'sub';
33 break;
34 }
35 }
36 return $items;
37 }
Did you changed all &$items to $items in init.php?
Fatal error: Class 'Mage_Checkout_Model_Mysql4_Setup' not found in /home/xxxxx/public_html/xxxxxx/includes/src/Mage_Core_Model_Resource_Setup.php on line 132
This is my magento site error when i am open front end and also backend. how did i am slove this error plz tel me any one
thanksenter code here
It looks like you are running Magento in 'compiled modus', but something went wrong. Have a look at /home/xxxxx/public_html/xxxxxx/includes/config.php. There are two define() statements in there. Comment them out and try again.