Ausgirl Posted April 20, 2007 Posted April 20, 2007 Hello, I just had an IP address go through my site in which it duplicated itself and my "who's online" stated there were 2834 guests online and growing so I blocked the IP address. The address showing on all files and in every inch of my site all looked like this: http://mysite.com/index.php?amp;amp;amp;am...1007155f9eba5dd Every inch of my site came up with the same addy. What does this mean? Now in my information box, everything under the heading Articles when clicked on goes to the page with all the information missing. All it says is ARRAY! Yet in the file all the information is there. If you would like to see what I mean you can see HERE! Could someone please explain to me what was happening? I also ran site monitor, but that didnt show anything unusual. Thanks
♥FWR Media Posted April 20, 2007 Posted April 20, 2007 Hello, I just had an IP address go through my site in which it duplicated itself and my "who's online" stated there were 2834 guests online and growing so I blocked the IP address. The address showing on all files and in every inch of my site all looked like this: http://mysite.com/index.php?amp;amp;amp;am...1007155f9eba5dd Every inch of my site came up with the same addy. What does this mean? Now in my information box, everything under the heading Articles when clicked on goes to the page with all the information missing. All it says is ARRAY! Yet in the file all the information is there. If you would like to see what I mean you can see HERE! Could someone please explain to me what was happening? I also ran site monitor, but that didnt show anything unusual. Thanks Looks to me like the you have information pages (enhanced vers 1.3) contrib installed and the file /includes/boxes/information.php has somehow been alterred incorrectly. Did you try to install the new version then go back to the old forgetting to replace a file? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 20, 2007 Author Posted April 20, 2007 Hello Robert, I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.
Ausgirl Posted April 20, 2007 Author Posted April 20, 2007 Hello Robert, I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.
Ausgirl Posted April 20, 2007 Author Posted April 20, 2007 Hello Robert, I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 I tried the reinstall, but it made no difference. Im puzzled as to why it happened in the first place. Any ideas on how I can fix it so the information appears on my site would be much appreciated. Thanks.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 Ive just disabled the pages from public view whilst I wait and hopefully someone can help me find a fix for it.
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 Ive just disabled the pages from public view whilst I wait and hopefully someone can help me find a fix for it. The problem seems to be catalog/information.php The following variables are empty .. $title $articles_menu and $description is what is showing as an array. Try replacing catalog/information.php with the one from the contrib. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 Nope, didnt work, How would part of the code just disppear? (I must of did something without realising it, but I dont remember changing any of the information files). I miss my info pages :( Should I stick that bit of code in my catalog/info.php? and try that? If so where would I place it.
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 $description shouldn't be an array are you sure you haven't duplicated entries in the DB? Try finding $description = stripslashes($information['description']); in catalog/information.php and add below it .. ## Temporary debug ## print_r($description); ## End temp debug ## See what it outputs Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 Yep, that worked, except it shows up in the wrong spot, LOL Check it out!
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 Is that all just one information page? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 The top part is, but the bottom 1/2 is where my site starts. It suppose to be in the box where it says "useful Services" Array. If you look at the suppliers it does the same thing.
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 As I said before it should not be an array. check in your database to see if there are 2 entries for the infopages Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 As I said before it should not be an array. check in your database to see if there are 2 entries for the infopages Find the line .. $information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'"); Try replacing with .. $information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'" AND languages_id='" . $languages_id . "'"); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 There is only one entry that I can see, I can post a picture of the DB if you like, maybe you might pick up something I havent. Replacing that code gave me this: Parse error: syntax error, unexpected '=' in /home/wwwshop/public_html/information.php on line 24
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 Ooops $information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "' AND languages_id='" . $languages_id . "'"); Get rid of the print_r() now too Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 Nope, the page is still on top. What do you mean by this: Get rid of the print_r() now too ? If you mean this ## Temporary debug ## print_r($description); ## End temp debug ## it just goes back to the way it was
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 All the print_r() does is shows us what is in the array, it will never appear where you want. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 mmmm, so whats wrong with it, can it be fixed do you think?
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 mmmm, so whats wrong with it, can it be fixed do you think? Try this .. find the following in catalog/information.php <tr> <td class="cart"><br /><?php echo $description; ?></td> </tr> Replace with .. ## REMEMBER your class names are probs different ## e.g. <td class="cart" <tr> <td class="cart"><br /> <?php if (is_array($description) { $count = count($description); for ($i=0; $i<$count; $i++) echo $description[$i] . '</td>'; }else echo $description . '</td>'; ?> </tr> Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 I modified the above just now .. redo pls Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Ausgirl Posted April 21, 2007 Author Posted April 21, 2007 <tr> <td class="cart"><br /><?php echo $description; ?></td> </tr> I dont have that bit of code, I have this: <tr> <td class="category_desc"><BR><?php echo $description; ?></td> </tr>
♥FWR Media Posted April 21, 2007 Posted April 21, 2007 Replace that with ... <tr> <td class="category_desc"><br /> <?php if (is_array($description) { $count = count($description); for ($i=0; $i<$count; $i++) echo $description[$i] . '</td>'; }else echo $description . '</td>'; ?> </tr> I did mention above that you would have a different class name :P Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.