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:

Windows Automation Expert C#, Java, OOP

:::::::READ FULL AD, ATTENTION TO DETAIL IN UNDERSTANDING THE REQUIREMENTS LISTED IS KEY TO MOVING FORWARD TO ACQUIRING THIS POSITION:::::: I am looking for someone who can develop a series of automated processes on a windows machine...

Skills Required: c# java oop ftp
  • Fixed Price Project
  • Max $5
  • 5 years left

German Speaking Project Manager In Vietnam

Hi, we are looking for a german speaking project manager in vietnam to work at the location of our software development team in vietnam. Your job will be to clarify tasks with customers and discuss directly with the team to get the software development jobs done. Please send your CV to us. Thanks T

Skills Required: german project-management
  • Fixed Price Project
  • Max $800
  • 1 year, 9 months left

This Is A Request For Any Plugin In Makers

I am useing the script http://www.datemill.com/index.php this script is a good script ,there or lots of people useing this script ,but only a few mods...

Skills Required: php forum-posting
  • Fixed Price Project
  • Max $10
  • 1 year left

This Maybe Your Dream! This Is Not A Job But An Opportunity

Who am I? I am a young motivated and creative mechanical engineering student and all my interests and dreams are towards innovation and entrepreneurship. Yes! I want to build and leave my legacy in this world...

  • Fixed Price Project
  • Max $25
  • 5 years, 1 month left

Iwr,icr And Ocr

we looking for software engineer can work on IWR , ICR and OCR software and prepare software for particular data entry work with full time job .

  • Fixed Price Project
  • Max $280
  • 5 years, 2 months left

**Technical** Project Manager - Senior Technical Level Person

Company: Small Software company uses freelance developers - SharePoint App development. Your job - THIS IS A RECURRING JOB - it does not have a finite end date. Ongoing business. The budget below is not indicative of compensation. This is to be negotiated...

  • Fixed Price Project
  • Max $5000
  • 1 year, 2 months left

Creating A New MMORPG - Need Workers (URGENT).

Basically, I need help making the mmorpg (as i can't make it myself and im looking for some workers to be part of the company:) ). Like making the models, enviroments, site, coding etc. And when the game gets profit, i will give some of the profit for whoever is working in the company...

  • Fixed Price Project
  • Max $5
  • 1 day left

Full Time App Developer Wanted

Skilled team or individual required to work long term to create apps to publish in the iStore and also "port" to android. We mostly publish utility apps and some games as well. PLEASE QUOTE YOUR DESIRED RATE WEEKLY! Must include samples of work and references to be considered. Raises

Skills Required: iphone-app-development
  • Fixed Price Project
  • Max $100
  • 3 months left
  • Fixed Price Project
  • Max $360
  • 5 years, 3 months left

SQL/Dextrity Programmer

Microsoft Dynamics Great Plains installation and support knowledge. Troubleshooting knowledge in Dextrity programming SQL Programing is a must SSRS (SQL server Reporting service) Implementation knowledge Crystal report knowledge Great Plains 2013 Web Client implementation...

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

Job Details

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