OpenCart Install

Error when installing opencart 1.5.1 and using a lowercase/uppercase Database name.


 in /var/www/dmx2go/upload/admin/model/tool/backup.php on line 21


This means that the call to $query =$this->db->query(“SHOW TABLES FROM `” . DB_DATABASE . “`”); 
is returning the DB_DABATASE with uppercase/lowercase. You have two options:

  • Rename the database to all lowercase 
  • or change line 21 on backup.php for
foreach ($query->rows as $result) {
          if (substr($result[‘Tables_in_’ . DB_DATABASE], 0, strlen(DB_PREFIX)) == DB_PREFIX) {
                                $table_data[] = $result[‘Tables_in_’ . DB_DATABASE];
                        }
                }
Remove the strtolower(,….);

And you will be fine.

 

Leave a Reply

Scroll Up
TECH NEWS: NVIDIA Launches Ising, the World’s First Open AI Models to Accelerate the Path to Useful Quantum Computers - NVIDIA NewsroomOpinion | She Has an A.I. Boyfriend. Her Son Has Questions. - The New York TimesAWS launches Amazon Bio Discovery to accelerate AI-powered research in life sciences - About AmazonNovo Nordisk partners with OpenAI as AI drug discovery hopes mount - CNBCSchools Are Urged to Embrace AI—and Ban Phones. Can We Resolve the Tension? (Opinion) - Education WeekWith SUNY Support, Stony Brook Builds AI ‘Ecosystem’ - SBU News     |     STOCKS: AAPL $257.42 (-0.69%) • GOOGL $332.74 (+3.56%) • TSLA $365.91 (+3.83%) • NVDA $194.57 (+2.78%) • MSFT $393.75 (+2.44%) • SPY $693.04 (+1.01%) TECH NEWS: NVIDIA Launches Ising, the World’s First Open AI Models to Accelerate the Path to Useful Quantum Computers - NVIDIA NewsroomOpinion | She Has an A.I. Boyfriend. Her Son Has Questions. - The New York TimesAWS launches Amazon Bio Discovery to accelerate AI-powered research in life sciences - About AmazonNovo Nordisk partners with OpenAI as AI drug discovery hopes mount - CNBCSchools Are Urged to Embrace AI—and Ban Phones. Can We Resolve the Tension? (Opinion) - Education WeekWith SUNY Support, Stony Brook Builds AI ‘Ecosystem’ - SBU News     |     STOCKS: AAPL $257.42 (-0.69%) • GOOGL $332.74 (+3.56%) • TSLA $365.91 (+3.83%) • NVDA $194.57 (+2.78%) • MSFT $393.75 (+2.44%) • SPY $693.04 (+1.01%)
Visit Us On TwitterVisit Us On FacebookVisit Us On YoutubeVisit Us On LinkedinCheck Our FeedVisit Us On Instagram