cancel
Showing results for 
Search instead for 
Did you mean: 

Add new product > does not show front-end

Add new product > does not show front-end

https://www.audiobuy.com.au/

 

Add new product in admin > loads for 15 seconds > 503 error > product added in admin > BUT product not show on front-end.

 

8 REPLIES 8

Re: Add new product > does not show front-end

@audiobuy_llc Try reindexing with the below command.

 

php bin/magento indexer:reindex

Thanks

Re: Add new product > does not show front-end

I tried this in admin > re-index

after request :

This page isn’t working

*www.audiobuy.hk * is currently unable to handle
this request.
HTTP ERROR 500

Re: Add new product > does not show front-end

@audiobuy_llc Can you add the below line of code in your index.php

 

ini_set('memory_limit',-1);

It seems to be a memory issue.

 

Thanks

Re: Add new product > does not show front-end

it is now this , the last line was your code :

 

<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled
with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
*
http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the
world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit
or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
*
needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage
* @copyright
Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
* @license http://opensource.org/licenses/osl-
3.0.php Open Software License (OSL 3.0)
*/
if (version_compare(phpversion(), '5.3.0', '<')===true) {
echo '<div
style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3
style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">
Whoops, it looks like
you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.3.0 or newer.
<a href="http://www.magentocommerce.com/install"
target="">Find out</a> how to install</a>
Magento using PHP-CGI as a work-around.</p></div>';
exit;
}

/**
* Compilation includes
configuration file
*/
define('MAGENTO_ROOT', getcwd());

$compilerConfig = MAGENTO_ROOT . '/includes/config.php';
if (file_exists
($compilerConfig)) {
include $compilerConfig;
}

$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
$maintenanceFile =
'maintenance.flag';

if (!file_exists($mageFilename)) {
if (is_dir('downloader')) {
header("Location: downloader");
}
else {
echo $mageFilename." was not found";
}
exit;
}

if (file_exists($maintenanceFile)) {
include_once dirname
(__FILE__) . '/errors/503.php';
exit;
}

require MAGENTO_ROOT . '/app/bootstrap.php';
require_once $mageFilename;

Varien_Profiler::enable();

if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}

ini_set
('error_reporting', E_ERROR);
/*register_shutdown_function("fatal_handler");
function fatal_handler() {
$error = error_get_last
();
echo("<pre>");
print_r($error);
}*/

umask(0);

/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ?
$_SERVER['MAGE_RUN_CODE'] : '';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER
['MAGE_RUN_TYPE'] : 'store';

Mage::run($mageRunCode, $mageRunType);
ini_set('memory_limit',-1);

Re: Add new product > does not show front-end

Added memory line to index.php

Cleared index/cache

Restarted server

 

Re-index still hanging

Re: Add new product > does not show front-end

Current server specs - is this not enough?

DigitalOcean

Standard
Shared CPU
6 vCPUs
16 GB
320 GB
6 TB
 
* Have tried adding Gupta to my Skype

Re: Add new product > does not show front-end

Do we need to pay DigitalOcean more money?

 

Current server :

Standard
Shared CPU
6 vCPUs
16 GB
320 GB
6 TB
 
Next available server tiers
Standard
Shared CPU
8 vCPUs
32 GB
320 GB
7 TB
 
-----------------------
Memory-Optimized
Dedicated CPU
16 vCPUs
128 GB
320 GB
8 TB
 

Re: Add new product > does not show front-end

Magento expert developer "Rahul Gupta" is looking into this issue and resolving when possible.

 

Recommended for Magento fixes / optimisations : Rahul Gupta