Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

The unsolved question of the "Internal Server Error"

Started by Rex, March 25, 2015, 05:18:56 PM

Previous topic - Next topic

Rex

I'm troubled. AbanteCart seems to be the perfect choice for a small business. I have tried several other shopping carts and I have abandoned them because of their lack of functions or fearsome backends.

But when installing AbanteCart it fails.

The installation tells me to disable OPcache, so I disable it in the htacess-file.
Every test checks out well, only green marks here.
Next page, fill in database and user names etc.  No questions here, it's standard procedure. I even check that the communication with the database works, and it does.
Next page again. A few seconds, then it fails. "Following error has occurred during installation: Internal Server Error: "

The error log shows: "Call to a member function write() on a non-object in <b>/(webadress)/core/lib/cache.php</b> on line <b>53</b>"

The "cache.php" on line 53 says: " $this->registry->get('log')->write('Cache directory is not accessible or writable.  Caching operation was skipped!'); "

If I understand this right, it must mean that the /core/lib - directory is not writeable. So I change the permissions to chmod 777.  I also change all of those folders and files mentioned here:  ww.abantecart.com/ecommerce-documentation/installation - to chmod 777.

It doesn't help.

Do I have to abandon AbanteCart, or is there anyone who can help me solving this problem?

I'm not a programmer but I thought I had experience enough to install a simple server side program; after all, I have done it several times before with Magento, Wordpress, eCommerce, Prestashop and so on. English is not my native language, so maybe i'm missing something obvious. If I do, please point me in the right direction.

I will be happy to contribute to the community later on with a translation of the program, if I only can get it to work.






abolabo

no. You should to change permissions for "public_html/system/cache" directory. 
Error just show you which line gives an error.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Rex

Hi and thank you for your instant reply.

I did try the the solution you offered and it didn't help. I tried it now ones again but still, it makes no differens. Is there anything else I can try?

rfleck

Hi Rex,

My  native language is not english too, it is Brazilian Portuguese.
I am having the same trouble as you ...

2015-03-28 20:17:51 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/(my site)/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>

I changed the permissions of "core" and "core/lib", to "777" and the error still continues ...
Than I changed the permissions of the whole folder "AbanteCart", and nothing has changed ...

2015-03-29 20:49:39 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/(my site)/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>

I hope somebody can help me !

oliver

If i remember correct i haved the same problem on my first setup on abantecart
i installed it with a differend language i think

but on my second installetion i install it with the common English  language and it worked without any problem
after i install the needed language and still working
maybe its the same problem you have
try to install it first with the common english language !

hope that helps

abolabo

Quote from: oliver on March 30, 2015, 03:17:05 PM
If i remember correct i haved the same problem on my first setup on abantecart
i installed it with a differend language i think

Please clarify what mean "installed it with a different language". Do you talking about default language of web-pages in your browser? or cookies?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

rfleck

I am using "Chrome", set to Brazilian Portuguese.
But I tried to install "AbanteCart" in it's default language, english.
And the error continues ...

"2015-03-29 21:08:39 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/(My site)/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>"

rfleck

Hi,
The permissions for folders "core", "lib" and file "cache.php" are set to "777".
The "fatal error" persists ...

2015-03-31 12:57:37 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/(my site)/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>

abolabo

Quote from: rfleck on March 31, 2015, 09:06:32 AM
Hi,
The permissions for folders "core", "lib" and file "cache.php" are set to "777".
The "fatal error" persists ...

2015-03-31 12:57:37 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/(my site)/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>

what about folders
public_html/system/cache and all files and directories in it
and
public_html/system/log ?

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

rfleck

Hi,

Yes, all folders in the path "/www/AbanteCart/core/lib" are set to "777", and file "cache.php" too.

I gave total permission (777) for all the installation, this means "/AbanteCart/*.*" ... And nothing
changed ... The error continues ...


rfleck

Hi,
This is the message:

Fatal error: Call to a member function write() on a non-object in /htdocs/home/(My Site)/www/AbanteCart/core/lib/cache.php on line 53

The folders "/core/lib/" and the file "cache.php" have total permission (777).

rfleck

Hi,
All tables have been created correctly in the DataBase.

abolabo

please read my posts..
again...

Quotewhat about permissions of folders
public_html/system/cache and all files and directories in it
and
public_html/system/log ?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

llegrand

Hi,  In case you aren't totally familiar with file permissions -  if you are using cPanel to change the permissions on a folder - it doesn't not change the permissions on the files within the folder.

You have to use a recursive cmd  to change the files within a folder and a lot of users don't know how to do that.   So open up your folders and check your files  -  here's the docs with the entire list of files that require permissions to be set.

http://www.abantecart.com/ecommerce-documentation/user-manual/installation

Lee

oliver

Quote from: abolabo on March 31, 2015, 04:55:45 AM
Quote from: oliver on March 30, 2015, 03:17:05 PM
If i remember correct i haved the same problem on my first setup on abantecart
i installed it with a differend language i think

Please clarify what mean "installed it with a different language". Do you talking about default language of web-pages in your browser? or cookies?

not browser or cookies i tryed to install with turkish language i think I don't remember
but i get also some problem on my first install

Forum Rules Code of conduct
AbanteCart.com 2010 -