demolaynyc
Jan 1 2007, 03:45 AM
I don't know where this topic is appropriate in so please move it if it's innapropriate for this place as this involves PHP and OSCommerce Hi, I got an error stating the following: Warning: reset(): Passed variable is not an array or object in /home/content/j/w/s/jws8118/html/catalog/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/content/j/w/s/jws8118/html/catalog/admin/includes/classes/object_info.php on line 18 Here's the source code: CODE <?php /* $Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License */
class objectInfo {
// class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } } ?>
More problems are that my client can't add products to his cart. He also cannot upload any new products to the categories. I'm asking the PHP programmers who have experience with OS Commerce and also those who know this to please help me with this problem. My client needs this problem fixed as soon as possible. I need solutions ASAP. Thank you.
Reply
Mark420
Jan 1 2007, 12:52 PM
Hmm i dont use OScommerce ...I use Vurtua mart ...i found it much better and much better to hack it for your needs and a lot of support on thier forums.. Have you tried the Os forums? Maybe try to backup the mysql db then remove Os commerce then reinstall with default values then replace the old db back in? that may work
Reply
ginginca
Jan 3 2007, 01:15 PM
I have done a number of OSC sites myself, but my programming knowledge is weak. Have you posted this on the OSC forum, or done a search for the error message on that forum. Just as a side note ... I have started using Zen Cart for my E-Commerce projects. It is based on OSC, but to compare, it's like OSC on steroids.
Reply
mastercomputers
Jan 8 2007, 04:00 AM
This may not be the right way to go about it as I don't know what information is being passed to this class, but you could do: CODE class objectInfo { function objectInfo($object_array) { $object_array = is_array($object_array) ? $object_array : array($object_array); reset($object_array); while(list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } } That will just insure that $object_array is an array, so that these methods that expect arrays can still continue without any warnings, however, they're just warnings and can usually be ignored, you just have to make sure that your error_reporting doesn't display them. Cheers, MC
Reply
demolaynyc
Jan 9 2007, 04:52 PM
Thanks for the help. But we found out that it was because of the settings of the domain. The main domain's path had to be rerouted to the root folder.
Reply
iGuest
Jun 2 2008, 08:22 AM
Replying to demolaynycHey! I have exactly the same problem... Can you please tell me more about this server setting and how to fix it up? 10x in advance! -reply by Sergey
Reply
Recent Queries:--
admin/includes/classes/object_info - 40.20 hr back. (1)
-
oscommerce array error - 47.98 hr back. (1)
-
information_ group_id error for oscommerce in information manager - 50.12 hr back. (1)
-
error oscommerce display products sorting error index.php - 51.46 hr back. (1)
-
mysql query error: select f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc, - 59.32 hr back. (1)
-
warning: reset() [function.reset]: passed variable is not an array or object in admin/includes/classes/object_info.php on line 17 - 83.78 hr back. (1)
-
reset() warning "passed variable is not an array or object" oscommerce - 93.79 hr back. (1)
-
compatibility.php oscommerce - 102.83 hr back. (1)
-
warning: reset() [function.reset]: passed variable is not an array or object in "oscommerce" - 102.84 hr back. (1)
-
function objectinfo($object_array) - 102.87 hr back. (1)
-
oscommerce videos - 110.64 hr back. (1)
-
remove warning: reset() [function.reset]: passed variable is not an array or - 115.05 hr back. (1)
-
reset($object_array) - 124.06 hr back. (1)
-
oscommerce variable passed to each() is not an array or object in - 126.82 hr back. (1)
Similar Topics
Keywords : oscommerce, errors, passed, variable, array, object
- Permanent Variable
(7)
New Tutorials Have Issues
Before they are approved tutorials show up, and with confusing errors (2) I recently decided to put up a new tutorial. I understand that new tutorials need to be approved
before they show. Don't mind that at all. However - I noticed in the bottom area of "new
topics" my tutorial is already showing. Clicking it get the error... QUOTE > Board Message
Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got
this error message, try looking through the help files for more information. The error returned was:
Sorry, some required files are missing, if you intended to view a topic, it's possib....
Phpmyadmin Continues To Have Errors.
(17) I am aware that there is already a topic about PHPMyAdmin but I am receiving a different error (and
that topic is closed). It seems as if PHPMyAdmin has an error in it's code. I received the
following error. CODE Warning: session_write_close()
[function.session-write-close]: SQLite: session write query failed: database is
full in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning:
session_write_close() [function.session-write-close]: Failed to write session
data (sqlite). Please ....
Errors When Installing/booting
From Live CD and actual installation (13) On my new computer, I decided to install Linux as I need it for development purposes. Wanting to
take a shortcut, I tried using Wubi, the Windows-based Ubuntu Installer. Everything went fine as it
installed. I restarted the system to find revalidation errors when booting. It kept on repeating
the same thing over and over so I thought that the Wubi installation was corrupted or otherwise
damaged. I downloaded Ubuntu 8.04 and burnt it onto a CD-R and tried that instead. I couldn't
even boot into the Live CD session because the same error came up. It looked like this: ....
Changing Path Of Shared Object
(2) Can anybody tell me how to change the path of shared object default path to any D or E drive.. E.g
: Default path like C:\Documents and Settings\TempName\Application
Data\Macromedia\Flash
Player\#SharedObjects\D8F43EBD\localhost\Temp\Flash1.swf to
D:\Sample Plse reply Thank you ....
Simple Java Question
One Variable; Multiple Classes (3) I’m probably the only person that is able to do so much with Java3D and yet still can't
even get some of the Java basics down. Anyway is it (and if so how is it) possible to make a
variable editable and readable in multiple class files? It seems like this should be an easy
question to answer, but here is a little code to help you understand what I am talking about. CODE
public class test extends Applet{ public int Col = 0; [some long code basically all it
does is call for a collision behavior] [(TestB multiple times every 100 millisecon....
Strange Errors With Servers?
(6) Well I guess some of the errors could be from my browser or the gamma server but I have had some
strange things happen. Anyway as some of you may know, I am working on a small site were it is
possible to save data in a MySQL database. Anyway while using Opera web browser I get a sever
connection lost error while I am inserting or updating some of my values (other browsers (IE
explorer est.) take a long time to re-connect but they eventually load the page). Now this was
driving me crazy because it would work on about half the values and not on the other. They are all
inse....
Cute News Errors!
(0) Well lately my cutenews has been stuffing up it will go into the news box but the title will not
come up see what I mean by checking it out on Habble-aus.com its weird!? If you know the
answer please leave a comment on this post! /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" />....
Can Anyone Help Me Detecting 503 Errors In Php Progs ?
(5) Sorry for being a pain and not knowing much PHP, I'm not that brilliant at it. Anyway, can
anyone help me with this little code? $online =
file_get_contents("http://www.habbo.com.au/habbo_count_xml.action") or die(" 0"); $onlinee =
trim(strip_tags($online)); echo $online; ?> All it does is show how many people are
online on Habbo Australia. It works, except when Habbo is down (it is now because the servers carked
it) it gives me this. Warning: file_get_contents(http://www.habbo.com.au/habbo_count_xml.action) :
failed to open stream: HTTP req....
Hi, Looking To Host Oscommerce Site
(0) Hi I'm looking for a new free web host to host my online store. I'm selling mobile phones,
games consoles and other gadgets. I like the fact that the hosting gives SSL encryption which is
what I need that other free hosts are not giving. I was with awardspace for a while but then found
websitesnetwork. I'm gonna try and contribute to these forums to get a free host. Thanks
Sarwar Ggadget....
Y = New Array()
(2) Hi, I have no problem with one dimension Array. For example: Y = new Array(); Y = smith; Y = john;
.. .. My problem is with two dimension Array. For example: Y = smith; Y = john; .. .. Do you
agree to define Y = new Array() with two dimension Array. Thank you for your help in this matter. ....
Working Out A Date Has Passed
(6) Right i am curious to how i would work out that exactly 24 hours has passed from a given variable.
The variable is taken from a mysql database and reads as follows 2007-11-22 10:05:49 How would i
check if 24 hours has passed or not? So it will work out that the 24 hours has passed at:
2007-11-23 10:05:49 I have tried datediff from mysql but that didn't quite work. Anyhelp would
be great thanks.....
Send Php Variable To Javascript
(5) Right i had a look across the internet as well as a search on here but you cannot search for
anything less than 3 characters. But this is a really quick question. Would the following code
allow me to send a php variable to a javascript? CODE <?php $color = "green";
?> <script language="JavaScript"> BackColor= "<?php
echo($color);?>"; </script> ....
Cleanly Killing The Itunes Com Object
(2) So, I'm working on a media server that interfaces with iTunes to play my music for me. I've
run into a small nuisance, but not something critical. To work with iTunes, a C# application needs
to instantiate an iTunes COM object. This actually forces iTunes to open. Now, if a person were to
attempt to close iTunes, the C# application would receive an AboutToPromptUserToQuit event. If the
iTunes COM object is not destroyed and dereferenced so that iTunes thinks it can cleanly exit
without stranding any other application, the user will be prompted to confirm the....
Unexpected Error
Undefined variable??? (2) Is this script correct? index.php : CODE <?php if
(isset($_COOKIE["disp_name"]))
$_GET['name'] = $_COOKIE['disp_name']; else
setcookie("disp_name", Anonymous, date()+99); ?> <html>
<head> <title>Display Name - DZN</title> <!--
METAS --> <meta name="verify-v1"
content="oyEmG+TJ87xHGXl8NQS6GHJ8rcRDkFG4oXnYWtqddGk=" /> </head>....
Problem In Theme Or Active Object!
(4) now i got this problem in the picture. when i copied a link from the internet, and past it on the
desktop, a massege said : are you sure you want to copy active object, as i remember, maybe not
exactly that but i rapidly clicked ok...so that what happened!, it's the same as the web
page at the corner of the desktop, and i can use it and the links in it are working! i changed
the theme but it still. anybody can help me please....
Php Any Variable In String.
(1) OK well I am making a new php program and I am trying to add bbcode to it. Anyway I was going to
replace each thing by it self, but that could cause errors. Anyway is there a way to make a variable
be anything? Here is an example: CODE This is the bbcode:
[color=00FF00]Hey[/color] In my php: $bbcode =
array("[color=".$a."]"); $html = array( "<font
color='#".$a."'>"); $topic_content =
str_replace($bbcode, $html, $posted_bbcode)....
Oscommerce
shopping cart with a down home look (1) osCommerce is fully supported by the osCommerce community support forums which is currently
comprised of 137,180 registered members. The main areas of the support forums are osCommerce
support, osCommerce documentation, osCommerce contributions, osCommerce development, and General
topics. For the newbie osCommerce support is the place to go. The first stop is Installation and
Configuration. Here you can look for members questions and even ask your own. With such a large
user audience you probably don't even have to wait a week for a response. Actually us....
Php Mysql Errors
Fetching arrays (2) I am deciding to make a Multiplayer Online RPG type game. I will be building it off of PHP and MySQL
to ensure makimum compatibility with Astahost's services (and it makes it easier /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />). I have a database setup with
1 table to hold user data and I have the login system setup properly as well as the registration
form (obviously). All games of course have something similar to gold, units and points. Because
this is a turn-based game, I have turns. Now for the problem: I am trying to echo ....
Installing Ipb Help
HomePage Errors (5) hi all, i have recently installed IPB and have been gettings errors on the index page. all the
other pages are fine, its only this one! the error comes up as QUOTE mySQL query error:
SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name,
c.description as cat_desc, c.image, c.url, m.member_name as mod_name, m.member_id as
mod_id, m.is_group, m.group_id, m.group_name, m.mid FROM ibf_forums f, ibf_categories c
LEFT JOIN ibf_moderators m ON (f.id=m.forum_id) WHERE c.id....
C# Tutorial : Lesson 4 - Object Oriented Programming
(2) Object Oriented Programming Object Oriented Programming is a methodology modeled on real
life. It comprises of the basic unit, an object, being used in implementing a program. Think of all
the objects around you - cars, buses, birds, trees, etc. You will find countless ones of them,
everywhere you go. In order to tackle this huge number, we started classifying them, thus came the
term Class. Class A class is a composition of the theoretic characteristics (attributes and
properties) of an object and the things it can do - behaviors, methods and features. Tak....
Php - Object Oriented Programming
(1) Hi, I just recently found out PHP's capabilities of being OOP. Since I had learned Java's
methods, I've adapted its methods and applied it to PHP. Since then, I've been avoiding
procedural PHP scripting and moved to OOP instead. Like Java, I have divided the codes in classes. I
have a commented package namespace to show which project it's from. It's almost like Java.
I want to know, does anyone use PHP's OOP in different way? Well I believe you can form PHP in
C++ way.....
Enumeration Enum = .....
Variable identifier a keyword? (4) Oseveral occasions when I was perusing example source code from various locations, I see something
like this: Enumeration enum = headers.keys(); while (enum.hasMoreElements()) { String name =
(String) enum.nextElement(); Forgive me here, but to me it looks like they're declaring a
variable's identifier to be a java keyword...? I've seen this more than once, but ran across
it just now in the com.oreilly.servlet package source. Eclipse always gives me errors when I load
example code containing something like this, so I'm sure it's incorrect. What....
How To Reset The Server Variable Php_auth_user
(9) Hi, i'm developing a web application which obviously requires a log in/log out script that i
just implementing but i dont know why the log out script dont work fine. The problem is related
with the server variable $_SERVER which remains set even when in the log out script i unset it
with the unset() function. Does someone knows how can i reset or clear the server variable
$_SERVER ??? Best regards, ....
Ruby - Better Programming Language Than Java Or C#?
Ruby is an object-oriented, meta-programming language that has many de (1) hey all i read this very intresting and intriguing article and i thought i should share it here..
find example codes in the attached file. cheerz! shiv Ruby —A Diamond of a Programming
Language? QUOTE Have you heard about Ruby? It seems to be a popular topic in software
development circles today. This language came to my attention at a Java conference last spring,
where gentlemen like Bruce Tate (author of Bitter Java and Better, Faster, Lighter Java), Dave
Thomas (Pragmatic Programmer: From Journeyman to Master), and others were all talking about Rub....
How To Repair Disk Errors And Bad Sectors
Windows Xp,2000,Nt (2) How to repair disk errors and bad sectors in Windows Xp,2000,NT You can use Windows Disk Manager
tool to check for file system errors and bad sectors on your hard disk. To check your drives:
1- right click on drive and click Properties 2- click Tools tab and under Error-checking, click
Check Now 3- in dialog box select the Automatically fix file system errors or/and Scan for and
attempt recovery of bad sectors check box Automatically fix file system errors ....
VB6 Need Help With Object Validation
Any help will be appreciated (4) OK, only been using VB6 for less than 2 weeks, but have gone passed expectations and have found
things I have overlooked and am now needing either an explanation on how to do it or some good
places they will clearly explain how to go about it. To be honest, I'm not wanting to learn
this language, it's just a requirement that I must get out of the way before moving onto a much
larger project. I will apologise now if I speak a lot of C/C++
Objects/Properties/Methods/Functions, I can explain programming better under this language. So back
to VB, Just to ignore m....
Force Object To Load Last
html question (2) Alright html wizards...i've got a question ^_^ I assume that, like other programming codes, html
and php compilers read a code from top to bottom. Say I have a object though...and I want it to load
last...how do I do that? Let's just pretend I have an image that I do not want to load until
everything else on the webpage is loaded...how can I set that up? Is there perhaps a javascript code
for it...or maybe a CSS style I could add onto the object? Or better yet, is it possible to make
everything within a div/span/table tag load last? Another thing...if I leave an....
Delphi - Tfilestream
Object Persistence... use TFileStream (1) OK. This tutorial may be helpful to people who use Delphi, for anyone else... it will probably be
boring /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> . This tutorial is
going to explain briefly how to use the TFileStream Class. For anyone who has wanted to say... save
any data from a listbox and during run-time you wanted to append different information to it, or
throughout the applications running time and then save the information when the application closes
then you should use the TFileSteam Class. The great thing about this is it can re....
Array Sorting
Does anyone hava a decent JAVA method (21) does anyone have a decent JAVA method that will sort an array from smallest-to highest?
/mellow.gif" style="vertical-align:middle" emoid=":mellow:" border="0" alt="mellow.gif" /> The one
i'm trying to write doesn't seem to work... or if you could look at mine below, and tell me
what i did wrong, that'd be nice to.(if it reallllyyyyyyyyy sucks, please dont laugh to loud
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> ) This should
take an array and then calculate how many of a number is in it, add it to the first slots....
Looking for oscommerce, errors, passed, variable, array, object
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for oscommerce, errors, passed, variable, array, object
|
advertisement
|
|