Jump to content
Latest News: (loading..)

John W

♥Ambassador
  • Content count

    860
  • Joined

  • Last visited

  • Days Won

    16

John W last won the day on May 3 2017

John W had the most liked content!

2 Followers

About John W

  • Rank
    Woof Woof!

Profile Information

  • Real Name
    John W.
  • Gender
    Male
  • Location
    Orlando, Fl

Recent Profile Visitors

20,032 profile views
  1. PHP 7

    I was just talking about the hash functions used, but I don't really have an argument for it. http://www.php.net/Hash I just put the function into a test page and the errors went away after the (int) addition, but I was just testing the output of the function. I did get the string offset errors at first.
  2. PHP 7

    Why not use the PHP builtin has functions?
  3. PHP 7

    It only works when there's no z in the output. I ran into this on another piece of Harald's code I was playing with. I found a workaround, but it's not a good one and I'm not sure why it even works. Putting a -1 after $q stops errors. function tep_random_name() { $letters = 'abcdefghijklmnopqrstuvwxyz'; $dirname = '.'; $length = floor(Hash::getRandomInt(16, 20)); for ($i = 1; $i <= $length; $i++) { $q = floor(Hash::getRandomInt(1, 26)); $dirname .= $letters[(int)$q-1]; } return $dirname; }
  4. PHP 7

    Try this. Did a little searching on StackOverflow and learned a little more. Had to add the Hash class so I could experiment. This yeilds an output now. function tep_random_name() { $letters = 'abcdefghijklmnopqrstuvwxyz'; $dirname = '.'; $length = floor(Hash::getRandomInt(16, 20)); for ($i = 1; $i <= $length; $i++) { $q = floor(Hash::getRandomInt(1, 26)); $dirname .= $letters[(int)$q]; } return $dirname; }
  5. PHP 7

    I had not seen that error before, but a little Googling and reading showed that it's popping up for others with other software. Normally, PHP errors can be found with Google and see how others solve it. My thought was that it was a string that needed to be cast, but i wasn't certain. Most of the OSC code cast variables years ago, but addons don't have it. Anyway, we both learned today and that's always a good thing.
  6. PHP 7

    You can try casting the variables to an Interger.
  7. You could just insert it into your DB if you want. INSERT INTO `configuration`( `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function` ) VALUES( 'Store Address and Phone', 'STORE_NAME_ADDRESS', 'Put your store name and address here', 'This is the Store Name, Address and Phone used on printable documents and displayed online', 1, 18, '2005-06-29 15:52:28', '2003-07-17 10:29:22', NULL, 'tep_cfg_textarea(' );
  8. STORE_NAME_ADDRESS used to be used and was changed. I still have it in my configuration DB for my old PDF that I still use.
  9. Hosting Recomendations

    @Jack_mcs Don't you do hosting, Jack? I know you contribute a lot to this forum, so for a newbie, it seems like you're an option they should consider.
  10. @azpro I didn't think about that at the time. I was just submitting some pages to check for errors and it came up. However, I think you are correct.
  11. Http to Https

    Can you post your url, so we can take a look. You might have something hardcoded to a http image or something.
  12. updated certificates

    Yes, that's where I got my copy. They recently have changed a couple times, and I haven't tried the lastest version. @Bobber Does the latest work for you?
  13. updated certificates

    That is the exact cet code I'm using in ext/modules/authorizenet/authorize.net.crt @Bobber IT is super important that you make sure you save it without BOM (byte order marker) or it may fail. It's been changed again but I'm using that and it's recent. They have a ton of certs now in there. I'm uploading a copy of my crt file in case it doesn't work by copying it. authorize.net.crt
  14. updated certificates

    Change it to https://secure2.authorize.net/gateway/transact.dll There are 3 instances as i remember.
  15. updated certificates

    @kennyk, you can put the cert I have a couple posts above and make the gateway change. That should get you working. Sorry, but on Monday I was thinking this was the Paypal thread. I was kind of tired when i answered that day.
×