bobchatelle
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Loads from wrong directoryNever mind. I disabled my caching plugin and the problem went away. I reenabled it and everything still works.
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodThanks for all the info! I will explore.
-Bob
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodWhile I’ve done little coding thes past few years, problems like this demonstrate the advantages of developing locally. Googleing about, I se there are different approaches for installing a server, wordpress, etc. locally. Do you have any recommendations?
-Bob
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodI have contacted my ISP to see if they can shed some light on this.
MY code can continue to live in the account and directory where it is now working. But I would like to know the cause of the problems.
As far as I know the recreation was accurate. Depending on what my ISP advises, I may just delete/recreate everything on the problem site.
-Bob
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodI have another account with my ISP. I created a new directory in this account and recreated all of my files and logic there.
The problem disappears.
But I suspect, if it is a caching problem, it will reappear.
How do I get rid of these php caching problems?
When I worked with PHP years ago I don’t remember having them.
-Bob Chatelle
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodIt seems obvious that the called public function is not being executed because the first statement in it is a die command.
When I’ve had problems like this with other code (not php) in the past, it has usually turned out to be some kind of caching problem. Is that possible here? I can’t come up with any other explanation.
-Bob Chatelle
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodThanks for the suggestions! I haven’t worked with PHP for years and I am quite rusty.
This is my new calling logic:
echo “Calling getByDateOrder from date is $fdate”;
print_r($donorfile);
$donorfile->getByDateOrder($fdate);
die(“Called getByDateOrder”);This is the method called:
public function getByDateOrder($fdate) {
global $wpdb;
die(“getByDateOrder entered”);
$query=”SELECT * FROM ncrj_donors WHERE lgdate >= ‘$fdate’ ORDER BY lgdate”;
$this->qstring=$query;
$wpdb->query($query) or die(“getByDateOrder Failed”);
$num=wpdb->num_rows;
$this->i=0;
$this->lmt=$num;
if ($num==0) {
return false;
}
$this->result=$wpdb->get_row($query) or die(“Donor Query Failed”);
$this->readIt();
return true;
}This is the result:
Calling getByDateOrder from date is 2016-01-01Donor Object ( [title] => [fname] => [qstring] => [lname] => [addr1] => [addr2] => [city] => [state] => [zipcode] => [donorkey] => [mname] => [name2] => [lgdate] => [phone] => [fax] => [email] => [comment] => [noslct] => [gift] => [result:Donor:private] => [lmt:Donor:private] => [i:Donor:private] => )
Notice: Trying to get property of non-object in /home5/forthill/public_html/_donors/donor.php on line 224
Called getByDateOrderThe line 224 error doesn’t appear to be relevant. It is in another routine and a routine that works. The method still never seems to get invoked,
Forum: Fixing WordPress
In reply to: $wpdb->update problemThanks for the link! I will check it out.
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodIgnore my prior post. It was meant for another thread.
Forum: Hacks
In reply to: Odd Problem Invoking PHP MethodThanks for the link! I’ll check it out.
Forum: Fixing WordPress
In reply to: $wpdb->update problemMy apologies for not getting back to this query. I had meant to, but ended up fighting other fires.
Stupid mistake on my part. This code is part of a php routine that is outside of wordpress. Thus $wpdb is meaningless.
Forum: Fixing WordPress
In reply to: $wpdb->update problemI corrected the typo, ran again, and got identical results. I’ve tried the code using both php 5.4 and php 5.6.
The requested update, by the way, does not occur.
The mystery is why is there no return from the call and why do no errors show up on the log.
Forum: Fixing WordPress
In reply to: $wpdb->update problemI put the show_errors in there only for convenience. I look at the actual php error log and it has nothing in it.
But you’re right there is a typo. Which should have, I think, resulted in a parse error.
Forum: Fixing WordPress
In reply to: HTML5 Video Problems with IE9I just looked at my code, which was even more complicated than I remember. I just attacked the problems by trial and error. The two big problem browsers for me were IE and Safari. Finally, I set things so that the HTML5 video code would not generate for IE if the version was less than 9 and for Safari unless it was for an iphone.
To generate the flash code I used the FV WordPress Flowplayer plugin from Foliovision.
I seem to recall that the Safari problem was that the autoplay would not start until the entire video had loaded.
Forum: Fixing WordPress
In reply to: HTML5 Video Problems with IE9I finally got everything working to the client’s satisfaction. This was some time back so I will have to dig into the code.