Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter bobchatelle

    (@bobchatelle)

    Never mind. I disabled my caching plugin and the problem went away. I reenabled it and everything still works.

    Thread Starter bobchatelle

    (@bobchatelle)

    Thanks for all the info! I will explore.

    -Bob

    Thread Starter bobchatelle

    (@bobchatelle)

    While 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

    Thread Starter bobchatelle

    (@bobchatelle)

    I 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

    Thread Starter bobchatelle

    (@bobchatelle)

    I 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

    Thread Starter bobchatelle

    (@bobchatelle)

    It 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

    Thread Starter bobchatelle

    (@bobchatelle)

    Thanks 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 getByDateOrder

    The 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,

    Thread Starter bobchatelle

    (@bobchatelle)

    Thanks for the link! I will check it out.

    Thread Starter bobchatelle

    (@bobchatelle)

    Ignore my prior post. It was meant for another thread.

    Thread Starter bobchatelle

    (@bobchatelle)

    Thanks for the link! I’ll check it out.

    Thread Starter bobchatelle

    (@bobchatelle)

    My 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.

    Thread Starter bobchatelle

    (@bobchatelle)

    I 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.

    Thread Starter bobchatelle

    (@bobchatelle)

    I 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.

    Thread Starter bobchatelle

    (@bobchatelle)

    I 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.

    Thread Starter bobchatelle

    (@bobchatelle)

    I finally got everything working to the client’s satisfaction. This was some time back so I will have to dig into the code.

Viewing 15 replies - 1 through 15 (of 21 total)