Opencart Extension Installation issue - opencart

Facing this problem while installing opencart extension at localhost

Your issue is related with in correct ftp details or no ftp details added in
Admin - System - Settings - Store - Edit - Ftp
You can contact your host for FTP details.

You just need to update max_execution_time = 120 value in your php.ini file.
Or
You can add a php.ini file with max_execution_time = 120 value in /admin folder.
Or
You can add below code to .htaccess file too:
php_value max_execution_time 120
This will surely resolve the issue.

Use "FTP QuickFix" by iSense.
https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=18892
This extension allows install extension without FTP settings. It could be helpful if you have any FTP-related error by extension installation.
You need to download and unzip this mod first.
Then, admin panel > Extensions > Extension Installer.
Click the Upload button and select the .xml file that you previously unzipped. Navigate to Extensions > Modifications and click on the Refresh button at the top right corner of the screen.
This is it.

Related

How can I add a file in the Google Cloud SSH? I am in need to host a website and wants to add .HTML file in SSH command line

I am going to host a website and needed to add a file (simple HTML file) in SSH command line in the location /var/www/html.
Based on the file location path I'm assuming you're running Linux (most probably Debian since it's the default solution for many GCP's VM's).
When you connect via SSH to your VM (it doesn't matter what kind of software terminal it is) or GCP's console and SSH button (which opens up a new window) there is a way to create and edit files that way.
For small files (like HTML page) you can use [nano]2.
When you log in to your instance create a file with nano (if it's not there):
sudo nano /var/www/html/index.html - it will open up the nano and you will see empty file. If index.html already existed you will see it's contents.
I assume you already have the file ready on your local computer so now just open it with text editor and copy it's contents to the nano's window (ctrl+c & ctrl + v work).
Next save the file with nano ctrl + o and close it with ctrl + x.
Now reload the webserver service (lets assume you use nginx) with sudo service nginx reload.

Renaming Admin Folder in Opencart

I'm new to opencart. While I understand the security benefits of renaming the admin folder and renaming all instances of 'admin' in the config file, my question is, if for example I install a payment extension that comes with its own admin and catalog folder to be merged, do I also rename the extensions admin folder to reflect the new change?
The .htaccess file isn't an option for now as my IP address isnt static.
Thanks for your anticipated reply.
Steps to Change OpenCart Admin Dashboard URL & Folder
Log into your hosting account cPanel, or FTP
Navigate to the folder containing the “admin” folder. It is usually the “public_html” or “/var/www/html” folders.
Right click on the “admin” folder and choose the “rename” option from the dropdown
Enter the new folder name for the “admin” folder. Use an un-common name which is hard to guess and completely unrelated to your business. (For eg: “STA22R1”, “ROCKETSCIENCE74851”)
Now, edit the /admin/config.php and replace ALL instances of the word ‘admin’ with the new folder name you have chosen in the above step.
// HTTP
define('HTTP_SERVER', 'http://test.domain.com/opencart/**admin**/');
define('HTTP_CATALOG', 'http://test.domain.com/opencart/');
// HTTPS
define('HTTPS_SERVER', 'http://test.domain.com/opencart/**admin**/');
define('HTTPS_CATALOG', 'http://test.domain.com/opencart/');
//DIR
define('DIR_APPLICATION', '/home/userna5/public_html/opencart/**admin**/');
define('DIR_SYSTEM', '/home/userna5/public_html/opencart/system/');
define('DIR_DATABASE', '/home/userna5/public_html/opencart/system/database/');
define('DIR_LANGUAGE', '/home/userna5/public_html/opencart/**admin**/language/');
define('DIR_TEMPLATE', '/home/userna5/public_html/opencart/**admin**/view/template/');
define('DIR_CONFIG', '/home/userna5/public_html/opencart/system/config/');
define('DIR_IMAGE', '/home/userna5/public_html/opencart/image/');
define('DIR_CACHE', '/home/userna5/public_html/opencart/system/cache/');
define('DIR_DOWNLOAD', '/home/userna5/public_html/opencart/download/');
define('DIR_LOGS', '/home/userna5/public_html/opencart/system/logs/');
define('DIR_CATALOG', '/home/userna5/public_html/opencart/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'username_example');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'username_example');
define('DB_PREFIX', 'oc_');
If you are using vQmod, you will have to update the pathReplaces.php file, located in the /vqmod directory. The code to rename the ‘admin’ folder should already be there. It would be similar to the code shown below:
$replaces[] = array('~^admin\b~', 'backend');
Replace the word backend with the new folder name we have chosen in the above steps.
If you renamed the admin folder name then the other extension you are trying to install that will not work because the other extension is looking for the admin folder that folder is doesn't exists in the directory so, it will you the error like no /admin directory exists. But if you renamed the extension folder name as to your opencart admin then it may depend if your extension has install.xml then it will not work properly if there is no install.xml then it will work properly. I hope this answer will help you if you like this then please vote for it.

Error on install Hugo academic blogdown on github pages

I've been trying to create a personal site using blogdown and the academic template:
blogdown::new_site(theme = "gcushen/hugo-academic")
However when I try to attach the site to github pages I get the error:
our site is having problems building: The variable {{2\left( {x + 4} on line 58 in content/slides/example-slides.md was not properly closed with }}. For more information, see https://help.github.com/articles/page-build-failed-tag-not-properly-terminated/.
It looked properly terminated...but regardless, I've tried to delete the file but alas the same error comes up even with its removal.
The site is https://github.com/sebastiz/SebastianZekiCV/
In order to publish a user site via github pages either:
1) the name of the repository must be exactly .github.io
In this case, the pages will be served from the HEAD of your master branch (or the gh-pages branch - your choice). The root of the repository is the root of the site.
2) the name of the repository can be anything. In this case, it will served from the master branch, but from the /docs directory.
In either case, github pages will run Jekyll. The only way to stop it is to have only "static" files - e.g. CSS, html pages, images, etc.
What you can do is create two repositories - one will be your source; the other will be the actual pages served. You can use hugo -d <path> to tell hugo to build its output in the root of the clone for the "output" repository.
Further reading:
github pages help configuring source
hugo command reference
For this problem, the ideal solution which is suggested is to create separate repositories for code and static content. However, the error can be solved by disabling Jekyll to run.
Create a file called .nojekyll at the root of your repository.
You can then go ahead and choose publishDir = "docs" and server from the docs/ directory in the master branch.

404 Page not found while deploying MicroStrategy Web sample

I am a newbie to MicroStrategy. I have managed to install MicroStrategy and Install the sample (MSTR-SDK/samples/javaExternalSecuritySample) in MicroStrategy Root directory /web aspx/plugin directory.
I am still getting below error when I launch the MicrosStrategy web tool.
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
How do I fix this?
Can you browse to the file on your webserver at the location indicated (inetpub\wwwroot\plugins\ESM\JSP\mstrWeb.jsp) ?

OpenCart installation message error

I'm trying to install OpenCart using Wamp server but i got this message error .
Warning: require_once(d:\wamp\www\opencart\upload\config.php) [function.require-once]: failed to open stream: Permission denied in d:\wamp\www\opencart\upload\index.php on line 9
Thanks in advance.
In startup.php change:
// Error Reporting
error_reporting(E_ALL);
to
// Error Reporting
error_reporting(0);
If You had a fresh download (manual or from GIT) and tried to install, the installation setup at step 2 should check whether it is possible to write to required files/folders. The write access is required to create the config.php files (for catalog and for administration).
It is not required to create a blank empty.php before installation as there is a blank config-dist.php used to be copied into a config.php file.
So the only solution needed for this is to allow the write access (either 775 or 777). But when speaking of WAMP (and Windows) there should not be a problem with write access unless You are setting read-only permissions for all Your www folder...
This is a path issue. Check your path carefully.
config.php file is missing.
You need to rename "config-dist.php" and "admin/config-dist.php" to "config.php" respectively
As usual, the answer is in the error message:
"d:\wamp\www\opencart\upload\config.php"
"Permission denied"
Make sure PHP is able to read and write to this file - right click it in Windows and check Properties > Security.
you need to rename the file as config, no need to rename the file config.php
because already the PHP extension is available on that file