Prestashop installation fails at Modules step - ftp

I am trying to install latest version of Prestashop and it fails when installing modules.
I get no error description, just that modules could not be installed and that I can try again.

I am answering my own question because maybe some day someone finds this useful.
I did some debugging to see where did the installation fail, and it was giving an error complaining about calling the install() method ona non-object variable.
I changed some php code in the modules install script, and I saw it was failing in the statnewsletter module.
I did not knew why was that, so what I did is go to the FTP and check the files of that module, and surprise, all files had 0 bytes size!
So, the porblem was that my FTP client (Filezilla) did not upload the files correctly.
I've uploaded all the prestashop files again overriding all files and then the installation worked fine.
What I've found on the web is that Filezilla can leave the file with 0 size if the server doesn't respond on the 20seconds timeout limit. And that the timeout limit can be increased in Options to avoid this happening.
Hope helps someone!

Related

Class 'JString' Not Found

The below error is what I get when I load my site. Can anyone let me know why it's happening. Is it plugin issue or not?
Fatal error: Class 'JString' not found in
/home/issyoga/public_html/plugins/content/emailcloak.php on line 67
JString should be loaded by the autoloader. Check if your Joomla installation has the file libraries/joomla/string/string.php and that the file is not corrupt and does not have permission issues. Not sure what caused this in the first place (it might be a corrupt upload or it might be that the file was compromised).
Alternatively, you can just disable the Email Cloaking plugin (although I think you will experience the same problem in another plugin unless you fix the root problem).
A good idea would be to re-install the Joomla core through cPanel - just make sure you delete the images, the installation, and the templates folders from the zip file before extracting it, and make sure you backup your site first (filesystem + database).

Installing Joomla 3.x error

I'm trying to install Joomla 3.x with MS SERVER. I try to press INSTALL button on last step and it just redirects me to the same place and doesn't actually install anything.
https://img.exs.lv/e/z/ezeliitis/Untitled.png
What could cause this? :/
Have you ensured that all the prerequisites were installed on the application server? This is an old post - but check this: https://docs.joomla.org/Configuring_sqlserver - it should lead you to the right solution.
This can happen if you have max_execution_time=30 in your php.ini file. This means a script can run a max for 30 s. Sometimes database entry takes time gretaer then 30s. So the installation halts. What you need to do is change it to a higher value in your php.ini file. I kept it max_execution_time=1000.

Class 'JObject' not found

Hello everybody trying to solve my problem!
2 days ago I tried to install an extension (simpleslideshow). After the installation was not successful and I got an error about the privileges and then site went blank. I cannot even access the admin page. Now I tried to delete the extension folder via FTP and the site still doesn't work. I'm getting the following error:
PHP Fatal error: Class 'JObject' not found in *domainpath* /public_html/libraries/joomla/application/base.php on line 23
Any idea?
The extension should not be enabled if the install didn't complete, but just to be sure look at the end of the #__extensions table and disable / delete the newly added lines.
Then delete all files (administrator, component, modules, plugins) that were packed with the extension.
Finally, apply a clean Joomla update package to your site, just to make sure your installation didn't compromise the core
Clear the cache, tmp and you should be back to where you were.
Next time, make backups before doing anything to reduce the risk and the hassle.

Feared: Blank frontPage yet accessible backend in joomla 1.5.22

I am no expert in Joomla... :)
On my local station using XAMMP, my Joomla 1.5.22 site is running fine but when I upload it to our server online, my problem began, when I visit the frontpage it pulled out nothing but I can still access its backend. I tried to search all over the net, I did some suggested fix but still failed :(
Look for error log in the root folder of your Joomla install, that will give you a hint on why this is happenning.
Also, instead of copying the files and database manually use Akeeba Backup extension for backing up complete site (all files and database) in a single archive. Then use Akeeba Kickstart script for restoring. Akeeba Kickstart will automatically change all configurations needed to run your site on the new server. The extension and the script are free and the process is very simple, look for Youtube videos that show the backup / restore process step by step.
Good luck.
I just get my site back, I just learned that a depreciated module caused the problem, because our server has been upgraded, so I just disabled all my modules on site then single by single I enable it again and find the module that caused the problem, which I did, I'm now replacing that depreciated module with new extension so that the site will be working back.
-- Update --
Now my site is back, I just found out that GD library is not installed on PHP, that's why it shows blank page in the first place, PHEW!
thanks

Joomla installation permission errors

So I have been given the task of upgrading one of our companies' old websites that is based on 1.5 to something newer (because a second site of ours on the same version just got hacked).
I know some php and some other web stuff, but I'd never used Joomla.
I have setup a lamp server on a local VM (ubuntu) for me to test it all out on, then upload the upgraded version as is suggested. My problem now is that I know the permissions are not correct because when I tried installing Akeeba Backup, it kept throwing errors such as "could not copy to /var/www/components and /var/www/administrator etc. I went in and chmod'd those 2 (and then the rest of www because of more errors) to 757 (from 755 for the most part) - which i know at that point might as well be 777. Then when I've tried to use Kickstart to restore from the JPA file I have, it just right away throws an error "could not create j_backup/ folder".
I know this slackening of all permissions on the root folder is wrong, but it was the only way to get it to 'work', which it's not even now, so my question is what did I do wrong in the setup and how do i fix it? I'm not great with Linux, but I'm thinking I have to make PHP owner of www? is that right? or terrible practice?
The other issue I see now is that I just installed the latest php and everything and I see Akeepa says not to use php 5.4... not sure how much of a problem that's going to be....
Some direction would be great because I'm more than a little lost.
Thanks!
This is certainly a headache. Most often, as you stated, the issue is the ownership of the files on your server. Files uploaded via FTP will be owned by your FTP user and may not be editable by the Apache/PHP user. Similarly, files created by installing extensions in Joomla! will be owned by the Apache/PHP user and your FTP user will not be able to modify them. Here is an article discussing the problem with a couple of possible solutions:
http://docs.joomla.org/Why_can%27t_you_install_any_extensions%3F#File_ownership_advice_from_ianmac
In the past, I have used an Apache Module called suPHP (http://www.suphp.org/Home.html) to solve this problem and keep it from reoccurring. suPHP executes PHP scripts with the permissions of their owners.
As for file permissions other than ownership, please refer to the Joomla! documentation for the correct settings: http://docs.joomla.org/Verifying_permissions. One quick way to handle this (if you can install extensions after correcting the ownership issue) is to use the AdminTools extension (http://extensions.joomla.org/extensions/access-a-security/site-security/site-protection/14087). One of its tools ‘fixes’ the file permissions on your server by resetting them to the Joomla! default.
Good luck!

Resources