Setting up Magento 1.4 locally, MAMP - php

As the title says, I am trying to set up an old 1.4 Magento installation locally with MAMP.
Things i did so far:
Download entire website
Import Database
Change unsecure and secure base_url
Change database user information in local.xml
Delete everything inside the var folder
Set PHP version to 5.3
A fresh install of 1.4 Magento works fine on my system.
All I get is a Magento error screen saying "There has been an error processing your request"
The error messages generated to the var/report folder are exe files, and return something like
/Applications/MAMP/htdocs/sandbergdesign/var/report/624953303320: line 17: syntax error near unexpected token }'
/Applications/MAMP/htdocs/sandbergdesign/var/report/624953303320: line 17:#16 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}'
logout
When clicked

I got it up and running.
I decided to download a fresh Magento 1.9, and installed it using the OLD database, the one from the Magento 1.4 site.
I also had to truncate the following tables in the DB:
Truncate all log_ tables
Truncate report_event, report_compared_product_index, and report_viewed_product_index
After truncating I could complete the installation process, and can proceed to implement the old theme, test functionality, etc.

Related

Magento 2.4.4 sample data installation error

I have downloaded Magento version 2.4.4 with sample data from https://magento.com/tech-resources/download I was trying to install it on the Wamp server. But when I run the installation I get the error
Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exce
ption message: Rolled back transaction has not been completed correctly.
I tried with versions 2.4.3 and 2.4.3-p2 all are showing the same error. But I was able to install the 2.4.3 version without sample data. I searched and found it is related to some error in the csv file. But none of the answers provided a solution. Please help.
Hi #Akhilesh in our case use magento 2.4.4 and this error was by a third module and when disable this, all magento run fine.
Your can edit vendor/magento/framework/DB/Adapter/Pdo/Mysql.php file, search rollback() method and in the "else" section add this line:
echo (new \Exception())->getTraceAsString();
This can help you to look where is the error, if is from a module or another.
Regards

SilverStripe - The website server has not been able to respond to your request

I'm trying to create my first SilverStripe website following this tutorial.
So far I have created my website and configured my .env page.
# DB credentials
SS_DATABASE_CLASS="MySQLDatabase"
SS_DATABASE_SERVER="localhost"
SS_DATABASE_USERNAME="root"
SS_DATABASE_PASSWORD=""
SS_DATABASE_NAME="SS_examples"
SS_ENVIRONMENT_TYPE="dev"
I'm not sure entirely how the database is created when creating a site. I checked my databases and I do not have one for it. I can make one manually but I wasn't sure if I should and list it under SS_DATABASE_NAME, or if it will auto-create the db.
I'm assuming this is why when I visit my local site localhost/SSexample/public I get an error saying "The website server has not been able to respond to your request".
Am I missing a step in setting up the site or should I manually create a db named SS_examples?
on a side note my apache server is set up with xampp and my SilverStripe project is in C:/xamp/htdocs.
Steps I took to create site:
Built site in C:\xampp\htdocs by running: composer create-project silverstripe/installer SSexample
Visited my project by going to localhost/SSexample/public
created .env file as listed above
ERROR LOGS
[2019-12-31 22:29:22] error-log.ERROR: Uncaught Exception SilverStripe\ORM\Connect\DatabaseException: "Couldn't run query: SELECT DISTINCT "SiteConfig"."ClassName", "SiteConfig"."LastEdited", "SiteConfig"."Created", "SiteConfig"."Title", "SiteConfig"."Tagline", "SiteConfig"."CanViewType", "SiteConfig"."CanEditType", "SiteConfig"."CanCreateTopLevelType", "SiteConfig"."ID", CASE WHEN "SiteConfig"."ClassName" IS NOT NULL THEN "SiteConfig"."ClassName" ELSE 'SilverStripe\\SiteConfig\\SiteConfig' END AS "RecordClassName" FROM "SiteConfig" LIMIT 1 Table 'ss_lessons.siteconfig' doesn't exist" at C:\xampp\htdocs\SSlessons\vendor\silverstripe\framework\src\ORM\Connect\DBConnector.php line 64 {"exception":"[object] (SilverStripe\\ORM\\Connect\\DatabaseException(code: 0): Couldn't run query:\n\nSELECT DISTINCT \"SiteConfig\".\"ClassName\", \"SiteConfig\".\"LastEdited\", \"SiteConfig\".\"Created\", \"SiteConfig\".\"Title\", \"SiteConfig\".\"Tagline\", \"SiteConfig\".\"CanViewType\", \"SiteConfig\".\"CanEditType\", \"SiteConfig\".\"CanCreateTopLevelType\", \"SiteConfig\".\"ID\", \n\t\t\tCASE WHEN \"SiteConfig\".\"ClassName\" IS NOT NULL THEN \"SiteConfig\".\"ClassName\"\n\t\t\tELSE 'SilverStripe\\\\SiteConfig\\\\SiteConfig' END AS \"RecordClassName\"\n\r\nFROM \"SiteConfig\"\n\r\nLIMIT 1\n\nTable 'ss_lessons.siteconfig' doesn't exist at C:\\xampp\\htdocs\\SSlessons\\vendor\\silverstripe\\framework\\src\\ORM\\Connect\\DBConnector.php:64)"} []
It seems that the installer at localhost/SSexample/public should allow you to configure your database connection settings (and create the database for you).
Getting The website server has not been able to respond to your request error means that you have a problem with webserver - is it running?
EDIT: The website server has not been able to respond to your request is actually Silverstripe's generic error 500 message.
EDIT2: one has to enable dev environment - by adding SS_ENVIRONMENT_TYPE="dev" to .env file and then access localhost/SSexample/public/dev/build to get database created and populated.

Install Magento 1.9x with downloader.php

I wanted to install Magento 1.9x on my localhost (I am using XAMPP), but I get an alert with an undefined error. Here is what I did so far:
I went to https://magento.com/tech-resources/download and downloaded the archive with 1.9x which contains a file named downloader.php.
I copy it on the root of my local site aka magestore.com and then went to http://local.magestore.com/downloader.php.
The first steps were pretty smooth and everything was fine except the download step.
when I click continue I get an alert with an undefined error, like this:
If I choose the FTP method at Magento Connect Channel Protocol I get another alert saying Could not connect to connect20.magentocommerce.com. Try again (refresh page)
Help, please!

Array to string conversion - Project Crash [Laravel]

I am getting an error like this:
Array to string conversion
Inside:
/var/.../vendor/cartalyst/sentry/src/Cartalyst/Sentry/SentryServiceProvider.php
Code snippet where the error was thrown:
throw new \InvalidArgumentException("Invalid hasher [$hasher] chosen for Sentry.");
I was doing ordianry work in one of my controllers and this error occured when I clicked on one of the buttons inside my blade.
I have commented the code out but the error still is being displayed, not only on this one page but on every single one in my project. I can't even go to my /home/index.php page.
I have done
composer update
inside my project but that did not help. What can fix the problem?
#update
Yes I have checked sentry config file before I've made a new topic. I have the same problem when I load older versions (which do not contain the latest changes I've made today) of my project on to apache server which is running on Ubuntu 14.04.
Ideas what causes the problem?
In the config for Sentry you have to define a hasher.
It has to be a string. It can be 'native', 'bcrypt', 'sha256' or 'whirlpool'. Apparently in your app, it's not a string, but an array. Check your configuration. It's probably in app/config/packages/cartalyst/sentry/config.php

Errors while upgrading joomla 2.5 to 3.x.x

I attempted to upgrade from joomla 2.5.11 to 3.2.3 which is latest right now. First of all I checked and upgraded all extensions - CB, k2, kunena, xmap (I did not upgrade xmap as I got errors so I left it, little one not important) to latest by going extensions manager -> update tab. Then going components-> joomla-> update update to 3.2.3. The update finished but I got an error about remember.php and could not access admin panel.
Getting suggestions from Fatal error when updating joomla from 3.1.1 to 3.2.2 , I uploaded a joomla 3.2.3 package's remember.php file in /plugins/system/remember/ folder backing up previous file.
But I got another error -
Fatal error: Call to undefined method RuntimeException::get() in
/home/techhe97/public_html/libraries/joomla/error/error.php on line
797
So, can't access admin panel all the way.

Categories