Aviationguy
-
Posts
36 -
Joined
-
Last visited
Posts posted by Aviationguy
-
-
-
Thanks.
-
-
Thanks.
-
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.
-
Yes and thanks again.
-
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..
-
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.
-
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?
-
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
store settings/features
store settings/advanced
-
Thanks, will do. I set up email and looked at the templates only. These are my settings.
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?
-
I'm not sure what you mean by "watch the code do the mailing". Whatever that is, it will be me
doing it. Please break it down for me.
-
I have my email under store settings set up and I tested it. The test sent me an email OK but when I buy
something from my site, I don't get any emails. I expected emails like order confirmation etc.
What did I miss?
-
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?
-
That's awesome. Works great. Thanks. Just out of curiosity, how do you know so
much about the Cube Cart software? It seems like you wrote it. Thanks again.
-
That's what I tried but the links in the description don't show up as clickable.
I tried using http://www.google.com and just www.google.com to see what it would do
and it didn't work. Where am I going wrong?
-
I added the category with a description but can't find where to add the links. I tried making a product
and no luck. Where do I add the links and can I have a description with it?
-
I added a category called Links of Interest and would like to put links in it
that people can click on and go to the link specified.
Is that something I can do?
-
Thanks. I would never have found that.
-
-
Thanks for all the help. This is a great forum.
-
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.txtIs that a Cubecart thing? I don't have that file in my backup. -
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.
-
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.
Display in different browsers
in Technical Help
Posted
Great. Thanks.