MySQL Fatal Error: Out Of Memory, When Using One Script

Hallo all,

I have Web Shop (8000 articles) and recently we buy one additional B2B script.
This B2B script have job that import every day items from our supplier to our web shop automatically, in one time, 8000 articles.
This import we make every day manually on 09:00h in the morning and this job is only 10min (maybe less).

This script have problem to work, from 3 times, he succeed one times to import (we are on shared server). Server have some limitation.
We complain to hosting company, and they transfer our web to another server, also shared. And now B2B script do not wok at all.

Programmer which build this script do not know why is not importing, on the same server exist another site, with the same B2B script, which working good (programmer tell me). I want to help my programmer and me, but I do not know how.

Inside this B2B script, we have two different supplier from where we make import articles manually.

That I make shorter as possible.
We have Joomla 1.5.25 and Virtuemart 1.1.8.
On live site, in PHP.INI is disabled Error Display and is hard to see why is not importing.
Then, I install server locally on my laptop, and make enable error display in php.ini, and discover this:

When I try to import articles from my first Supplier A, after 3 seconds I receive this error:

**************************************
Fatal error: Call to undefined function curl_init() in C:xampphtdocsciuxadministratorcomponentscom_b2bimportscriptsasbis.php on line 42
**************************************

when I try to make import of second supplier B, after click on import button, I wait for import 3 minutes and then he report this:

***************************************************************
Fatal error: Out of memory (allocated 42467328) (tried to allocate 9437164 bytes) in C:xampphtdocsciuxlibrariesjoomladatabasedatabasemysqli.php on line 239

Fatal error: Maximum execution time of 30 seconds exceeded in C:xampphtdocsciuxlibrariesjoomlasessionstoragedatabase.php on line 82

Fatal error: Maximum execution time of 30 seconds exceeded in C:xampphtdocsciuxlibrariesjoomlasessionstoragedatabase.php on line 51
**************************************************************

then I make this changes in php.ini, increase from 30sec. to max_execution time = 600 (recomandation of my programer),

try again to import, and now I wait 5 minutes, and server report this:

************************************
Fatal error: Out of memory (allocated 42729472) (tried to allocate 9699308 bytes) in C:xampphtdocsciuxlibrariesjoomladatabasedatabasemysqli.php on line 239
************************************

now without maximum execution time error, but also not work.

In Joomla, this line 239 is this:

*********************************
function query()
{
if (!is_object($this->_resource)) {
return false;
}

// Take a local copy so that we don't modify the original query and cause issues later
$sql = $this->_sql;
if ($this->_limit > 0 || $this->_offset > 0) {
$sql .= ' LIMIT ' . max($this->_offset, 0) . ', ' . max($this->_limit, 0);
}
if ($this->_debug) {
$this->_ticker++;
$this->_log[] = $sql;
}
$this->_errorNum = 0;
$this->_errorMsg = '';
$this->_cursor = mysqli_query( $this->_resource, $sql ); // this is that line 239

if (!$this->_cursor)
{
$this->_errorNum = mysqli_errno( $this->_resource );
$this->_errorMsg = mysqli_error( $this->_resource )." SQL=$sql";

if ($this->_debug) {
JError::raiseError(500, 'JDatabaseMySQL::query: '.$this->_errorNum.' - '.$this->_errorMsg );
}
return false;
}
return $this->_cursor;
}
************************************

Now, this is two problem which need to repair.
Thank You in advance.

Search All Jobs:

Ab Initio Consultant

Job Title: Ab Initio Consultant (Multiple Positions) Location: NJ/FL/TX Duration: Full-time Job Requirements: "

  • Fixed Price Project
  • Max $100
  • 4 years, 6 months left

Order A Taxi App

Hi all, I need to have a program that lets people order taxi via a phone app. There should be a map of a city used with GPS identification of current position so a person does not need to write down where he is located...

  • Fixed Price Project
  • Max $5
  • 4 years, 6 months left

Html5 App

Program a html5 app with one button. When you click on the button a random sound will play. The sounds are inside the app - not streaming. The name of the sounds can be named fx sound1, sound2, sound3. I will rename, when I get the code. I have made the design - I only need the code.

Skills Required: html5
  • Fixed Price Project
  • Max $100
  • 4 years, 10 months left

Java Development Tasks

We have multiple Java projects that we are starting up and we're looking for great developers (or those wanting to become such) to build them with high quality and efficiency. We are looking for those who love programming and want to be rewarded for their ability to produce results efficiently.

Skills Required: java
  • Fixed Price Project
  • Max $10
  • 7 years, 5 months left

Amazon App Developer Needed

Skilled team or individual required to work long term to create apps to publish in the Amazon Marketplace. We mostly publish game apps and some utility apps as well. PLEASE QUOTE YOUR DESIRED RATE WEEKLY! Must include samples of work and references to be considered. Raises and bonuses to be in

  • Fixed Price Project
  • Max $100
  • 1 month left

Android/ Iphone

A us software company is looking for one android programer and one iPhone programer. very long term projects 3-5 years. looking for an individual who work alone not a company. Working from home is ok. Must have a few years experience. Must be able to take speck verbally in English...

  • Fixed Price Project
  • Max $15000
  • 2 years left

The Making Of A Great Idea (I Think)

Hi! I am an 22 year old real-estate student from Norway and I have an idea for an application for Android/iOS. I do not have a technical backgroud, none experience from making apps, neither do I have the money to invest in this idea...

  • Fixed Price Project
  • Max $200
  • 5 months left

Java Swing Developer - Singapore

- Execute development within a Greenfield development environment. - Work with teams spread across infrastructure, product development, support, test, and the front office. - Participate in ecommerce product requirements gathering...

  • Fixed Price Project
  • Max $7000
  • 2 months left

(Hiring) Senior Programmers

(1) Minimum four (4) years experience in developing multi-tier applications. (2) Minimum four (4) years experience in performing complex database queries, data conversion and data analysis...

  • Fixed Price Project
  • Max $50000
  • 2 months, 2 weeks left
  • Fixed Price Project
  • Max $50000
  • 2 months, 2 weeks left

Job Details

  • Job Type
  • Fixed Price Job
  • Budget
  • $30-$100
  • Start Date
  • 03/19/2012 08:42:52 AM
  • Job Status
  • Job Expired