add_action( 'wp_loaded', 'viewClassVar');
function veiwClassVar(){
$obj = new classVar;
$obj->dumpVar;
d( $obj);
}
class classVar {
public function dumpVar() {
$test = "this is a test";
d( $test);
}
}
The action d( $obj) works fine, but d( $test) from within the class method doesn’t show anything. Is there a way to be able to see dumps executed from within a class?
Thanks,
-Norm
I had to migrate a site with database because it was attacked and I saved it locally via MAMP, through the various guides I did the complete process that is:
backup database;
install locally a new clean wordpress installation;
import databases;
insert old site folders into the new copy.
So far so good, I changed the absolute address in the database and I put the one where MAMP is installed, I created a new account (via database).
I see the site but when I go to login at:
xxx / wp-admin
gives me the login form and first came out of an error screen: “You do not have permission to access”, now instead I return to the home site but I can not enter the dashboard.
How can I do?
Thanks so much
]]>inc-setup/import.php
is dumping two test variables on line 57.
Please, remove it.
Thanks,
Luca.
Is it possible to get the demo content to have a base? From there i would like to edit the theme.
Best wishes
]]>i want to output a list of all pages, posts, products (woocommerce) etc. with outputted by Yoast meta tags (title, description, keywords). It’s important that they will be not just dump of setted up meta fields, but those end-outputted by Yoast onto pages.
Any ideas?
]]>Today I decided to revisit the issue. When there was no joy trying to adjust permissions again, I went ahead and upgraded the plugin to the most current version, 1.5.1.
Now I can not backup locally either.
When I try Dropbox or Local backup I now get this:
function (divId) { var r = new Array(); var duplicateFound = false; o:for(var i = 0, n = this.length; i < n; i++) { if(trim(this[i])!==””) { var valone=trim(this[i]); if(divId !== “verifyEmail”) { for(var x = 0, y = r.length; x < y; x++) { var valnext = trim(r[x]); var temp = valnext.toLowerCase(); if(temp.match(‘(script).*(/script)’)) { valnext = temp.replace(//g,’>’); } if(valone.toUpperCase() === valnext.toUpperCase()) { duplicateFound=true; continue o; } } } if(divId === “verifyEmail”) { if(!emailFormatCheck(valone)) { alert(Resource.getRealTrimmedValue(“zc_js_enter_valid_email”)); return false; } else if(senderYahooDomainCheck(valone)) { $(“#verifyEmailError”).show(); $(“#verifyEmail”).addClass(“left redfield”); return false; } } else if(divId === “BulkContactText”) { //email Validation if(!emailPatternCheck(valone,”Contact Email”)) { alert(Resource.getRealTrimmedValue(“zc_js_enter_valid_email”)); return false; } } else if(divId === “contactBulkText”) { if(!emailPatternCheck(valone,”Contact Email”)) { $(“#contactBulkText”).addClass(“redfield”); $(“#error_noEmail”).html(Resource.getRealTrimmedValue(“zc_js_enter_valid_email”)); return false; } } else if(divId === “campaignBulkContact”) { if(!emailPatternCheck(valone,”Contact Email”)) { $(“#campaignBulkContact”).addClass(“redfield”); $(“#error_noEmail”).html(Resource.getRealTrimmedValue(“zc_js_enter_valid_email”)); return false; } } else if(divId === “picklistText”) { if(valone.length >100) { alert(Resource.getRealValue(“zc_js_pick_list_length_not_greater_$1”,’100′)); return false; } } r[r.length] = valone; } } var totalLength = r.length; if(duplicateFound) { //just an info to the user regarding the duplicate entries. alert(Resource.getRealTrimmedValue(“zc_js_duplicate_entries_found”)); } if(totalLength > 20 && divId !== “picklistText” && divId!==”CFpicklistText” && divId !== “contactBulkText” && divId !== “campaignBulkContact”) { alert(Resource.getRealTrimmedValue(“zc_js_number_of_contacts_not_greater_than”)); return false; } else if(totalLength > 20 && divId === “contactBulkText”) { $(“#contactBulkText”).addClass(“redfield”); $(“#error_noEmail”).html(Resource.getRealTrimmedValue(“zc_js_number_of_contacts_not_greater_than”)); return false; } else if(totalLength > 20 && divId === “campaignBulkContact”) { $(“#campaignBulkContact”).addClass(“redfield”); $(“#error_noEmail”).html(Resource.getRealTrimmedValue(“zc_js_number_of_contacts_not_greater_than”)); return false; } else if(totalLength > 150 && (divId ===”picklistText” || divId===”CFpicklistText”)) { alert(Resource.getRealValue(“zc_js_cannot_add_more_$1_items_to_pick_list”,’150′)); return false; } else if(totalLength > 5 && divId ===”verifyEmail”) { $(“#verifyEmailError”).html(Resource.getRealValue(“zc_js_cannot_verify_more_than_$1_sender_email_addresses”,’5′)).show().fadeOut(7500); return false; } return r; }
2017-01-20 22:27:57 Database Dump was successfully created ( 1.76 Mb) : C:\Users\ngage.works_NEW-SITE\ngage.com_NEW\ngage.com_NEW\wp-ngage/wp-content/Dropbox_Backup/mysqldump.sql
It creates the SQL dump just fine and writes the file then seems to blow up.
Doing the update has removed my ability to backup at all.
Does anyone have a clue from looking at the output above as to just what might be going wrong?
Thanks in advance,
Jeff
Sometimes we need to replace one text constant to another in the whole db, for example when we move site to another domain. The best way I know is to make db dump, edit it as a text document and upload to db again.
Sometimes constants look like this:
(178, 18, 'page', 'https://dvascheta.ru/contacts'),
and here is no problem, but sometimes like this:
a:5:{s:4:"home";s:19:"https://dvascheta.ru";s:4:"link";
And here is a problem because “s:19” means that a 19 chars long string follows.
Today I moved my site to httpS and had to replace all “http” to “https”. As soon as I did it, I found out that my theme settings were set to defaults (it forgot header and background image, all widgets etc). I found out that the problem was in string length and I had to correct string length everywhere. I.e. changing “https://dvascheta.ru” to “https://dvascheta.ru” I had also to change “s:19” to “s:20”
It was very much work to do because domain name was the part of very different strings of different length. I couldn’t use autoreplacement and had to change every occasion manually.
I noticed this length a long time ago and as soon as I remember I made string replacement without correcting length and everything was ok earlier. But now I’ve got a problem.
So the questions are:
1) What’s the sense of this length and what part of WP uses it?
2) Do you know any good automated way to replace constants and correct length?
Thanks in advance!
]]>