Jump to content

abhi.globalistic

Members
  • Posts

    14
  • Joined

  • Last visited

1 Follower

Profile Information

  • First Name
    Abhishek
  • Last Name
    G.L

abhi.globalistic's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. This method worked for me. Step 1: Enable friendly url . check everything is working fine without media server. Make sure friendly is enabled and media server is disabled when step 1 is working you will see url of your products as http://ec2.aws.XXXXXXXXX.com/1-large_default/faded-short-sleeves-tshirt.jpg Step 2 : enable media server now . i,m using cloudfront as cdn and s3 as bucket when media server is enabled you will come across 2 scenarios 1.css and js wont load and even images wont load 2.images will load but css and js wont load fix for this is: goto Advanced parameters -> Preformance -> CCC(combine compress and cache) Smart cache for CSS -- select no if it is yes. in my case it is rootofserver/etc/httpd in your case it might be same or it might be rootofserver/etc/apahce/ or rootofserver/etc/apahce2/ step 2. once your inside the folder open httpd.conf file in any editor u like.. again in my case its httpd.conf it might be same or it will be apaceh2.conf or apache.conf step 3. once you have opened the file in any of the text editor find these below lines and Allowoverride set it to All if it is none.(make sure 'a' is Capital) DocumentRoot "/var/www/html" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride All </Directory> next find these set of lines and set Allowoverride to All (make sure 'a' is Capital) <Directory "/var/www/html"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All Once you have finished editing this file.. upload it back to the server or if you can save it in the server itself do it. after uploading back to the server make sure to check this file again .if it has the edited changes. if not open putty or any command line tool your using and set chmod 0666 to the file the command is "sudo chmod 0666 /etc/httpd/httpd.conf" copy paste and hit enter in command line interface.make sure the file name is as it is in your server. and also the route. If even after all these changes your product images are still not loading then Goto your cdn console and set the origin as your webserver itself. dont use s3 bucket. ex if your site domain name (while development) may be ec2.userxxxxxxxx.aws.com (if amazon ec2) or any other service if your using provide that name as the origin for your cdn. as this will keep the files in sync between your server and the cdn where as the s3 bucket you have to manually update the master copy of your site.(there are methods to achieve sync between s3 and server but i have not tried it yet) follow these steps and it might get your site working properly.. this worked out great for me and the site is now url friendly and media server enabled.
  2. hey thanks for your time..i had all my prestashop files copied into this location var/WWW/html/ht docs. it was giving an error.. forbidden.. then i gave all the permissions to the ht docs folder..and restarted Apache2 and reinstalled php.. now the default page doesn't show up . but a blank white screen appears. .what i,m doing wrong..???
  3. Hi, I know this problem has been solved for so many. but in my case its not. i have tried everything until now.. nothing worked for me.. when i go to this address http://ec2-52-74-146-216.ap-southeast-1.compute.amazonaws.com it displays a default apache2 server page saying your server works but u need to replace the file located in /var/www/html to access your website.. i tried all the solution which were listed solved on the net but. none of those worked for me.. if anyone has solved this problem easily or know a better way around for this.. please shed some light into this.. for more info i have installed prestashop from aws market place
  4. hey there was a permission problem from the ssh i got the module installed.. What to do is .. we have to set the permission to 0777 for the entire override folder in the image u can see what has to be done.. previously it will be 0755 ..
  5. hi, its a typo .. proper path is /opt/bitnami/apps/prestashop/htdocs/override/classes
  6. Hi, I,m not able to install my module on the cloud hosted prestashop ( amazon cloud services) my module has an override to the product class. where i,m trying to add an extra field into its definitions . The module worked great in local server in my comp . were i had downloaded prestashop and installed in my comp. But now when i installed prestashop on the amazon cloud services.. i,m not able to install the module. The error says : unable to install module directory(ht docs/modules/override) not writable Can anyone help me out with this problem soon. Thanks in advance
  7. Hi, There are 2 modules which use same hook. actionproductupdate to save data into database. when save or save and stay button is pressed from the product gui page . when i use enter data into my respective module and press save.. its fine and gets saved into database.. but when i save data in any other fields like information and i press save button.. my custom module save is also getting called. and its incrementing my module database table id.. does any one face this issue.. please respond Ex - information tab seo tab .. . . . . mymodule tab.
  8. Hi, Pascal Thanks for your time. yes i know these id's doesnt give much importance . i also have id_product feild in both the module database .my problem is how is it getting incremented i need to know the cause for this.. after some research i found out that. the hook which i,m using in both the modules are of same name. whenever i update anything in the product page the hook gets called..and in turn database save method will be called from the modules . if this is the problem.. how can i solve it..
  9. Hi, i have a 2 modules created myself. each has its own database, these 2 modules are for product page. they have there own tabs in product page .. when i click on the first module tab in the product page . on the right hand side it shows a text field named directory name where i enter the directory name myself and i save it. This is properly getting saved in database with id = 1 and directory name = "directory name i typed" this is done for first module which i have created for the second module. the right hand side contains the same fields , in the product page i select the second module tab .and on the right hand side. i enter the directory name as i did for the first module..this is getting saved in database with id = 2 and directory name = "directory name i typed for second module" the problem is the id value of the first module is proper i.e is "1" but for the second module when saved. this has its own database table. its getting incremented to "2" for as i know the id value should be the same for both the modules when saved once ..but the for the second module it s getting incremented to "2" Can any one tell me what is causing this problem More info: i,m using a hook to save the data from the modules into the database .. hook is triggered when product page is updated.
  10. I've been successful in creating an extra table in the prestashop products table throught rest api of webservice , however the api link http://127.0.0.1/prestashop/api/wb3d/1 wb3d is the new table which i have created in webservice . which holds a path to images directory somewhere on the web . this link when opened shows the data which has been saved in the database.. in the following image below model is directory name on the web,so this api(wb3d) has been associated with the product table in the webservice the link:http://127.0.0.1/prestashop/api/products/1 when i open this link . then entry of the association is shown but the data is not shown refer the below image the highlighted area shows the wb3d table associated with the product table through rest api of webservice . i.m unable to associate the wb3d table data with product table data. so i can use it in other devices through webservice i cant figure out what i,m missing here.. if anyone has achieved this . put some insights on this . this is what i have tried till now <?php class ProductMergeCore extends ObjectModel { public $product_id; public $id_wb3d; public $directory_name; public static $definition = array( 'table' => 'wb3d', 'primary' => 'id_wb3d', 'fields' => array( 'id_wb3d' => array('type' => self::TYPE_INT, 'required' => true), 'product_id' => array('type' => self::TYPE_INT, 'required' => true), 'directory_name' => array('type' => self::TYPE_STRING, 'required' =>false, 'size' => 64), ), ); protected $webserviceParameters = array(); } ?> ProductMerge.php is responsible for creating an associate table entry in product table <?php Class Product extends ProductCore { public $extrafield; public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { $this->webserviceParameters['associations']['wb3d'] = array('resource' => 'wb3d','fields' => array('directory_name' => array('required' => true))); parent::__construct($id_product, $full, $id_lang, $id_shop, $context); } } ?> in this product.php which is for overriding the product class for passing the extra parameters through webserviceparameters() and then calling the parent constructor of the product class <?php class WebserviceRequest extends WebserviceRequestCore { public static function getResources() { $resources=parent::getResources(); $resources['wb3d'] = array('description' => 'images path', 'class' => 'ProductMerge'); ksort($resources); return $resources; } } ?> WebserviceRequest.php class is a override class for the WebserviceRequest class which shows the description of the table entry in the webservice These are the files which are required to get the things done. what i,m trying to achieve is the associated table (wb3d) data should be available within products table through webservice rest api call. anyone who is familiar with this can give there thoughts.
×
×
  • Create New...