Jump to content

Aviationguy

Member
  • Posts

    36
  • Joined

  • Last visited

Posts posted by Aviationguy

  1. I have been reading up on PHP code and wanted to add a hit counter to my page. I found some examples of code so I tried adding it to main.php and nothing happened. I tried others and nothing so I put in this bare bones statement:

    <?php
    $counterVal=1501;
    echo "You are visitor number $counterVal to this site";              
    ?>   

    Nothing fancy but also nothing on my page.  My question is, why can't I add this code and see the result on my page?

    I appologize if this is not appropriate for this forum.  If it is, just delete me.

  2. The original problem of no emails has been solved.  The problem was that when I set up the email and checked "yes " "Use SMTP authentication" I couldn't get the test to work.  Without authentication, the SMTP test worked fine so I left it that way.  I found in the error log that the emails were failing because I needed authentication.  I thought I had everything done right but where it asked for SMTP user name it actually wanted the complete email address.  I changed that from service to [email protected] and the test worked.  That got the emails working.  The logos eventually showed up because my connection was running really slow.   The emails to dan2012 is so goofy.  I registered on my own site to test it and used that email address.  They were supposed to go to me at dan2012.

    The error log tip is what did it for me.  Thanks for hanging in there with me..

  3. I think so.  I haven't tested it yet. In the error log I had this entry:

    [22-Nov-2015 08:55:11 America/Chicago] SMTP Error: The following recipients failed: [email protected]

    Where is the reference to dan2012 in this error coming from?

    I am sending emails from [email protected] and that is being forwarded to [email protected].

    I don't use dan2012 anymore. My test emails are making it to [email protected] OK.

    Is that [email protected] somewhere in cubecart?  I have looked.

    Added update:

    OK, I just tried it and the emails all worked OK.  Here is the strange thing.

    The new order email made it to [email protected]   It HAD my logo on it

    The thank you email and the confirmation email went to [email protected]  and it DID NOT have my logo on it.

    Something mixed up there.

     

     

  4. Thanks.  I found my problem there. I have 2 questions.

    First  where is the reference to dan2012 in this error coming from?

    [22-Nov-2015 08:55:11 America/Chicago] SMTP Error: The following recipients failed: [email protected]

    I am sending emails from [email protected] and that is being forwarded to [email protected].

    I don't use dan2012 anymore. My test emails are making it to [email protected]

    Second,  The last line in my error log concerns me.  This is it:

    [22-Nov-2015 08:59:46 America/Chicago] PHP Warning:  phpinfo() has been disabled for security reasons in /home/bestavia/public_html/admin/sources/phpinfo.index.inc.php on line 20

    What exactly is that saying and what do I have to do about it?

  5. I will assume you have access to PHP's error_log. Then, in the file /classes/mailer.class.php, make this edit:

    Was:
    	public function __construct() {
    		// Configure PHPMailer variables
    
    Now:
    	public function __construct() {
    		// Configure PHPMailer variables
    $this->SMTPDebug = 2; $this->Debugoutput = "error_log";

    When an email attempt is made, the Mailer's debug output will be in PHP's error_log.

    If it's not, then perhaps for some reason, CubeCart believes there is no need to make an emailing.

     

    I added the code and went through the purchase process and bought an item.  All went ok.  Paid with

    Paypal.  I went to the error log and there are no entries at all. It's like the email thing is not turned on.

    Here is what I have configured:

    store settings/administrators  

    5651dc1abe12e_09_Nov._22_2015.thumb.jpg.

     

    store settings/features

    5651d93c607e8_02_Nov._22_2015.thumb.jpg.

    store settings/advanced

    5651d9f8a6940_03_Nov._22_2015.thumb.jpg.

    5651da64b8a3c_04_Nov._22_2015.thumb.jpg.

    5651da7645167_05_Nov._22_2015.thumb.jpg.

    5651da92c550f_06_Nov._22_2015.thumb.jpg.

     

     

     

     

     

     

  6. Thanks, will do.  I set up email and looked at the templates only. These are my settings.

    564f1f0158009_01_Nov._20_2015.thumb.jpg.

    The order was paid with Paypal and the status stayed at processing.  I had to manually make it complete.  Isn't

    the status supposed to go to complete when it is paid for?  Why did CubeCart not change it to complete?  Any

    connection with this and the emails?

     

  7. I am trying to figure out the ins and outs of SEO and have been reading what others have done and asked

    about.  My question is should I create a document with search engine info for every product even though

    every product has search engine info with it.  Is including the document good or bad for the search engines?

  8. Thanks, I found it and that page has no files on it at all.  Is that normal?  Also, 1 more thing.  I found

    an error log and this entry was in it today:

     

    [Thu Oct 29 02:10:17 2015] [error] [client 180.76.15.155] File does not exist: /home/bestavia/public_html/

    robots.txt
     
    Is that a Cubecart thing?  I don't have that file in my backup.

     

  9. Following up, you said:

    The server administrator has decided to list ini_get_all() as a function
    not to be executed. In admin, PHP Info, there will be a list of all disabled
    functions. You may want to have a talk with your hosting provider to get that
    function unlisted.

    I can't find that.  I looked in admin.  Can you be more specific on how

    to get to it?  thanks.

  10. If what you said earlier, that "my file permission change themselves when I FTP files up to the server," I'm going to have to assume nothing will change.

    If you are using an FTP program you have installed on your computer, that may be the cause of the issue.

    If your hosting control panel has its own FTP tool, maybe by using that, instead of what you have installed, will get the files on the server with the proper permissions.

    My hosting provider said that the language folder was missing and they restored it.  I think it was messed up and not missing because you had me look in it for those files and I did. Anyway, it's working fine now and I thank you very much for the help.

×
×
  • Create New...