AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Rex on March 25, 2015, 05:18:56 PM

Title: The unsolved question of the "Internal Server Error"
Post by: Rex on March 25, 2015, 05:18:56 PM
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.





Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on March 25, 2015, 06:58:59 PM
no. You should to change permissions for "public_html/system/cache" directory. 
Error just show you which line gives an error.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: Rex on March 25, 2015, 07:18:30 PM
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?
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 29, 2015, 05:00:02 PM
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 !
Title: Re: The unsolved question of the "Internal Server Error"
Post by: 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

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
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on March 31, 2015, 04:55:45 AM
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?
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 31, 2015, 08:50:44 AM
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>"
Title: Re: The unsolved question of the "Internal Server Error"
Post by: 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>
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on March 31, 2015, 09:19:27 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 ?

Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 31, 2015, 09:33:10 AM
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 ...

Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 31, 2015, 10:17:33 AM
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).
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 31, 2015, 10:39:53 AM
Hi,
All tables have been created correctly in the DataBase.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on March 31, 2015, 12:32:16 PM
please read my posts..
again...

Quote
what about permissions of folders
public_html/system/cache and all files and directories in it
and
public_html/system/log ?
Title: Re: The unsolved question of the "Internal Server Error"
Post by: llegrand on March 31, 2015, 01:21:14 PM
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 (http://www.abantecart.com/ecommerce-documentation/user-manual/installation)

Lee
Title: Re: The unsolved question of the "Internal Server Error"
Post by: oliver on March 31, 2015, 01:28:16 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
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on March 31, 2015, 03:16:25 PM
Hi, Lee,
As I told, I changed all permissions to "777", using "FileZilla".
This installation is not the definitive one. It is just to see how it
works, and what I have to do to run it in Portuguese (Brazilian).
When I think that's OK, I will move the whole system to the
definitive domain.
The tables have been created perfectly.
All folders/files as requested on tye "How-To" paper, are set to "777"
The folder "/AbanteCart/images/data" doesn't Exist ... Only "/AbanteCart/image/thumbnails"
What else can I do ?

Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on April 01, 2015, 01:11:03 PM
Hi,
Is there nobody who can help me to install this ?????
Why does this error happens ?
Since 03-28th  I am trying  to install !!

2015-03-28 1:38:43 - error:  AbanteCart core v.1.2 Call to a member function write() on a non-object in <b>/htdocs/home/rfleck/www/AbanteCart/core/lib/cache.php</b> on line <b>53</b>


Title: Re: The unsolved question of the "Internal Server Error"
Post by: yonghan on April 01, 2015, 11:10:16 PM
Hi, are you installing it on your live site or on local machine? If you are installing it on your live site, have you tried using softaculous to install AbanteCart?
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on April 02, 2015, 07:58:16 AM
Hi,
I am trying to install in a live site.
I don't know "Softalulous" ...
Title: Re: The unsolved question of the "Internal Server Error"
Post by: yonghan on April 02, 2015, 08:04:37 AM
Are you using cPanel? If you are using it, scroll down to the bottom of your cPanel page and look for Softaculous Apps Installer. I have attach a screenshot.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on April 02, 2015, 12:37:10 PM
Hi,
I was reading about Softaculous ...
There is a facility to install AbanteCart.
I will try it today.
My ISP doesn't offer CPanel.
They have another facility to install Aplications, and they
offer only Joomla, Wordpress and Moodly.
Thanks for helping me!
Title: Re: The unsolved question of the "Internal Server Error"
Post by: yonghan on April 02, 2015, 12:51:27 PM
If it's possible for you to make another choice, please select hosting company that provide cPanel as it will helps you a lot. Not only the AbanteCart installation made easier. And you're welcome. One more thing, please search on this forum about the cache.php file, there are several people here got issues with the cache error too.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on April 02, 2015, 01:57:31 PM
Hi,
I changed the hosting company more and less one year ago ...
They offer a perfect service, and I am very satisfied with them.
They accept suggestions for new facilities, and I indicated
"Softaculous" today.
The previous hosting company I used, offered CPanel as a tool.
I will search about the "cache.php" file in this forum. Certainly there
must be a mistake or error in that script ... Somebody certainly
had the same trouble and found the solution. I hope so !!
The instalation ist near to be ready ...
All the tables are created ...
I will prepare this to run under Brazilian Portuguese language, and
when I have done this, I will transfer to a specific and exclusively
domain, only for the store.
I hope I will have succes ...
Thanks a lot for your help !!


Title: Re: The unsolved question of the "Internal Server Error"
Post by: rfleck on April 02, 2015, 10:18:39 PM
Hi everybody ...
I am giving up ...
I looked for more than 25 different topics in the Forum about the
error on "cache.php" file, but had no success ...
I will search for another system, maybe easyer to install ...
Thanks a lot for everybody for their help.
Bye ...
rfleck.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: yonghan on April 02, 2015, 10:35:12 PM
Have you tried http://forum.abantecart.com/index.php/topic,3276.msg14045.html#msg14045 (http://forum.abantecart.com/index.php/topic,3276.msg14045.html#msg14045)
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on April 03, 2015, 02:52:00 AM
Have you tried http://forum.abantecart.com/index.php/topic,3276.msg14045.html#msg14045 (http://forum.abantecart.com/index.php/topic,3276.msg14045.html#msg14045)
this issue not present in 1.2.
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on April 08, 2015, 06:21:11 AM
can someone give me access to CPanel to define what's going on?
Title: Re: The unsolved question of the "Internal Server Error"
Post by: abolabo on April 11, 2015, 01:59:47 PM
solution is replacement of file core/lib/cache.php by attached