Jump to content

dannypritchett01

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by dannypritchett01

  1. I appreciate your help. I went page by page, link by link and found a few other errors like this and by you pointing this out, I figured out how to fix this error in my other pages too. It appears that the freelancer I hired for a project set it up like this. All of the areas needed fixed had to do with areas they had coded. You're the best. Do you have any interest in in using your knowledge to add new functionality to our website? Id pay of course within my budget and if I couldn't afford it, Id just wait on it until I could. The freelancers I have been working with have been great but it is a pain in the neck to deal with them because so many of them code poorly.
  2. I am on 5.6 right now, but am working on moving to 7.4 in the next few days.
  3. It didnt have quotes before and then was throwing another error. Thats why I added quotes. When quotes arent there it gives: NOTICE: Use of undefined constant ENT_IGNORE - assumed 'ENT_IGNORE' It also tells me... NOTICE: getimagesize() [function.getimagesize]: Read error! in /includes/classes/class.opengraph.php at 48
  4. If yall have a moment go read my introductions. The short version is that I lost a lot of my memory due to a fall I had in 2014 while working for the big blue retail store with one or two registers open! haha. I am not allowed to talk about it so maybe you will know who I am referring too. Anyhow before that I was pretty knowledgeable and was doing great at fixing things as they came up. Now unfortunately while working on something my mind sometimes slips and I forget what I was working on and cant solve issues. The last couple of days has been a struggle for me. I have a error showing up and I know its got to be a stupidly simple fix I am overlooking or overthinking and I cant figure it out. The first issue I resolved. It was a typo. But this one is out to corrupt my brain even more, every time I go to think about it my brain craps out on me and I begin phasing out as I look onward on the screen. The error is filling my log full of entries over this one simple issue. I think its something to do with a facebook addition we added a few years back. The Errors are: htmlspecialchars() expects parameter 2 to be long, string given in class.opengraph.php at 67 File Line Function _LOG->HandlePHPErrors class.opengraph.php 67 htmlspecialchars class.page.php 249 s_OPENGRAPH::getMetaTags class.page.php 187 _PAGE->ShowPage pages.php 5 _PAGE->HandlePage I think I fixed this one below, look at the code and you can double check. Use of undefined constant ENT_IGNORE - assumed 'ENT_IGNORE' in class.opengraph.php at 67 File Line Function class.opengraph.php 67 _LOG->HandlePHPErrors class.page.php 249 _OPENGRAPH::getMetaTags class.page.php 187 _PAGE->ShowPage pages.php 5 _PAGE->HandlePage <?php class ISC_OPENGRAPH { /** * Gets a list of valid object types * * @param bool $includeLabels Set to true to return an associative array that includes the labels for each type * @return array The array of object types */ public static function getObjectTypes($includeLabels = false) { $objectTypes = array( 'product' => GetLang('TypeProduct'), 'album' => GetLang('TypeAlbum'), 'book' => GetLang('TypeBook'), 'drink' => GetLang('TypeDrink'), 'food' => GetLang('TypeFood'), 'game' => GetLang('TypeGame'), 'movie' => GetLang('TypeMovie'), 'song' => GetLang('TypeSong'), 'tv_show' => GetLang('TypeTVShow'), ); if (!$includeLabels) { return array_keys($objectTypes); } return $objectTypes; } /** * Generates meta HTML tags using the Open Graph schema * * @param string $type The object type * @param string $title The object's title * @param string $description Description of the object * @param string $image URL to an image of the object * @param string $url The URL to the object itself * @return string The HTML meta tags */ public static function getMetaTags($type = 'product', $title = '', $description = '', $image = '', $url = '') { $imgfile = parse_url(urldecode($image)); if(isset($imgfile['fragment'])){ $localfile = $_SERVER['DOCUMENT_ROOT'].$imgfile['path'].'#'.$imgfile['fragment']; }else{ $localfile = $_SERVER['DOCUMENT_ROOT'].$imgfile['path']; } list($width, $height) = getimagesize("$localfile"); $tags = array( 'og:type' => $type, 'og:title' => $title, 'og:description' => $description, 'og:image' => $image, 'og:image:width' => $width, 'og:image:height' => $height, 'og:image:alt' => $title, 'og:url' => $url, 'og:site_name' => GetConfig('StoreName') ); if (GetConfig('FacebookLikeButtonAdminIds')) { $tags['fb:admins'] = GetConfig('FacebookLikeButtonAdminIds'); } $metaTagsHTML = ''; foreach ($tags as $propertyName => $tagContent) { $metaTagsHTML .= '<meta property="' . $propertyName . '" content="' . htmlspecialchars($tagContent,'ENT_IGNORE','UTF-8') . '" />' . "\n"; } return $metaTagsHTML; } }
  5. Hello All, I had no interest in ever learning PHP. I took computer programming in school for fun because I was always a computer nerd. In 1995 at only 8 years old I began working on computers and repairing them. I had a Tandy 1000 running Dos, an older Apple PC that took 5.25 Floppies for Games, A Macintosh which I hated. And a pc with windows 3.1 up until the bug finally got me. Once I got a machine with Windows 95, I was hooked. I started tearing down machines, repairing and replacing parts, and setting them back up. I charged friends and family $35. It wasn't long before word got out that a kid was doing this work for fun, and everyone began telling a friend of a friend. Before I knew it after homework everyday I was working on someone's computer. As time passed, parts got better, operating systems improved some (Minus Windows ME & Vista), and I continued to get business. I finally got into computer programming for visual basic, next I was taking c++, but then I got tired of school and quit. I had found another way to bring in money, and had started doing that too. Fast forward many years and I got tired of the pc work. So I decided to stop and only work on stuff I wanted too, as I felt like it. Usually my own, or a close friend if I felt like I wanted to take on the stress. I ended up building a website on html and then eventually, switched to an auction script. Then decided I was tired of that and moved onto a PayPal ecommerce platform. That's when php introduced itself to me. I finally got tired of that and moved onto a different one that I could add and improve too. I still am working on it today. I have been slowly been learning here and there how to add, change, and fix errors that have come up along the way. But in 2014 I injured my back for the second time. This time it caused memory loss. I have a hard time staying focused and have to take several breaks. I still work on my own site, but I am not able to remember the stuff I used to be able to do. So now I have to reach out for help. I have been working on an error a while now and came across this website. So I am happy to join the family, and maybe it will bring back some of my memory so I can go back to being myself and enjoying my life once again as a programmer. Danny
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.