Fadlan Posted November 30, 2016 Share Posted November 30, 2016 Hi, I have problems with getting Starter Theme to work. After setting the config file and setting it in Admin Dashboard as theme it only shows white screen withouth code. I'm working on Ubuntu 16.04 and I found I need to type in this in terminal: $ cd _dev && npm install But it gives me this error: cd _dev && sudo npm install npm WARN prefer global [email protected] should be installed with -g > [email protected] install /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/install.js sh: 1: node: not found npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm WARN [email protected] No description npm WARN [email protected] No repository field. npm ERR! Linux 4.4.0-47-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] install: `node scripts/install.js` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] install script 'node scripts/install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/prestas/themes/lunaris/_dev/npm-debug.log I'm trying to get it to work, but to no avail and need dire help please. This is my npm-debug.log https://justpaste.it/10xww Sorry for long stuff, but can't get it to upload. Link to comment Share on other sites More sharing options...
Fadlan Posted November 30, 2016 Author Share Posted November 30, 2016 Okay I installed node 6. And then got this stuff: npm WARN prefer global [email protected] should be installed with -g > [email protected] install /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.0/linux-x64-48_binding.node Download complete ] - : Binary saved to /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass/vendor/linux-x64-48/binding.node Caching binary to /home/adam/.npm/node-sass/3.13.0/linux-x64-48_binding.node > [email protected] postinstall /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/build.js Binary found at /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass/vendor/linux-x64-48/binding.node Testing binary Binary is fine [email protected] /var/www/html/prestas/themes/lunaris/_dev └─┬ [email protected] ├── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] └─┬ [email protected] └─┬ [email protected] ├─┬ [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └─┬ [email protected] └── [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN [email protected] No description npm WARN [email protected] No repository field. So I guess it was ok??? But still my theme is nothing, no single line of code appears, but basic theme works no problem. I don't have prestashop installed in the main folder of /var/www/html is that a problem with routing or something? Please I need help. It's my first try at doing something in linux and it makes my head hurt how something as simple as new theme would be such a hussle. Maybe I should try something else not ubuntu? What linux distribution is recomended for working with prestashop? Link to comment Share on other sites More sharing options...
Traumflug Posted December 2, 2016 Share Posted December 2, 2016 Okay I installed node 6. And then got this stuff: npm WARN prefer global [email protected] should be installed with -g > [email protected] install /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/install.js So I try something else not ubuntu? What linux distribution is recomended for working with prestashop? Using Ubuntu is fine. Why are you using such complex commands? It's simpler: npm install # first time only npm run build That's it. If you're unsure wether you have all prerequisites installed, run this: sudo apt-get --no-install-recommends install nodejs npm Link to comment Share on other sites More sharing options...
Fadlan Posted December 3, 2016 Author Share Posted December 3, 2016 I've removed theme and installed again with your tip. This is my process of doing it: adam@adam-VirtualBox:/var/www/html/prestas/themes$ sudo git clone https://github.com/PrestaShop/StarterTheme.git lunaris Cloning into 'lunaris'... remote: Counting objects: 4526, done. remote: Compressing objects: 100% (32/32), done. remote: Total 4526 (delta 13), reused 0 (delta 0), pack-reused 4494 Receiving objects: 100% (4526/4526), 1.62 MiB | 952.00 KiB/s, done. Resolving deltas: 100% (2894/2894), done. Checking connectivity... done. adam@adam-VirtualBox:/var/www/html/prestas/themes$ ls classic core.js debug.tpl index.php javascript.tpl lunaris adam@adam-VirtualBox:/var/www/html/prestas/themes$ cd lunaris adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris$ ls assets config _dev modules preview.png templates composer.json CONTRIBUTING.md doc plugins README.md travis-scripts adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris$ cd config adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/config$ ls theme.dist.yml adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/config$ sudo code --user-data-dir="~/.vscode-root" adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/config$ cd .. adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris$ ls assets config _dev modules preview.png templates composer.json CONTRIBUTING.md doc plugins README.md travis-scripts adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris$ ls assets config _dev modules preview.png templates composer.json CONTRIBUTING.md doc plugins README.md travis-scripts adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris$ cd _dev adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/_dev$ sudo npm installnpm WARN prefer global [email protected] should be installed with -g > [email protected] install /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/install.js Cached binary found at /home/adam/.npm/node-sass/3.13.0/linux-x64-48_binding.node > [email protected] postinstall /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass > node scripts/build.js Binary found at /var/www/html/prestas/themes/lunaris/_dev/node_modules/node-sass/vendor/linux-x64-48/binding.node Testing binary Binary is fine [email protected] /var/www/html/prestas/themes/lunaris/_dev ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] └─┬ [email protected] ├── [email protected] ├── [email protected] ├─┬ [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ └─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └── [email protected] └─┬ [email protected] └── [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN [email protected] No description npm WARN [email protected] No repository field. adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/_dev$ sudo npm run build > [email protected] build /var/www/html/prestas/themes/lunaris/_dev > webpack --progress -p Hash: bfaaabda94e387837aef887d08b6994aca35854b Version: webpack 1.13.3 Child Hash: bfaaabda94e387837aef Version: webpack 1.13.3 Time: 2243ms Asset Size Chunks Chunk Names theme.js 250 bytes 0 [emitted] main [0] multi main 28 bytes {0} [built] + 1 hidden modules Child Hash: 887d08b6994aca35854b Version: webpack 1.13.3 Time: 2306ms Asset Size Chunks Chunk Names theme.js 313 bytes 0 [emitted] main ../css/theme.css 16.2 kB 0 [emitted] main [0] multi main 64 bytes {0} [built] + 10 hidden modules Child extract-text-webpack-plugin: + 2 hidden modules Child extract-text-webpack-plugin: + 2 hidden modules Child extract-text-webpack-plugin: + 2 hidden modules Child extract-text-webpack-plugin: + 2 hidden modules adam@adam-VirtualBox:/var/www/html/prestas/themes/lunaris/_dev$ I still get nothing after turning it on the admin panel in ps. What I'm doing bad, or what I'm missing? Can anyone tell? Link to comment Share on other sites More sharing options...
Fadlan Posted December 5, 2016 Author Share Posted December 5, 2016 Well, that didn't work for me. So I've copied classic theme and gonna remove style and work from that. Thanks for trying to help. Link to comment Share on other sites More sharing options...
hygap Posted January 21, 2017 Share Posted January 21, 2017 (edited) After battling though the same issues I think i have finally tracked the problem down. It is a simple permissions error, Gah. To fix your issue all you need to do is change the ownership on your new theme folder to that of your websever. In Ubuntu you would just do: sudo chown www-data:www-data -R ./nameofyourtheme from the folder above the theme in ubuntu. [security Note: you might want to rain this back in for production] Should fix your problem. --- Bonus Material --- Discovering this led me to another bug which i cannot explain (and wasted about 5 hours of my life): The reason you are getting a blank page and not a php error with more info is because prestashop disables the displaying of php errors by default in the defines.inc.php file (in the root config folder). In this folder (or by using the back office "advanced parameters > performance") you can set: define('_PS_MODE_DEV_', true); which should enable the displaying of php errors . However when I set it then load any page, Prestashop fails citing errors such as: Warning: rename(/tmp/class_index.phpdoEkBC,/var/www/html/prestashop/prestashop_1.7.0.4/app/cache/dev/class_index.php): No such file or directory in /var/www/html/prestashop/prestashop_1.7.0.4/classes/PrestaShopAutoload.php on line 254 Warning: rename(/tmp/class_stub.phpgesFc5,/var/www/html/prestashop/prestashop_1.7.0.4/app/cache/dev/class_stub.php): No such file or directory in /var/www/html/prestashop/prestashop_1.7.0.4/classes/PrestaShopAutoload.php on line 254 Warning: rename(/tmp/namespaced_class_stub.phpXpU0Nx,/var/www/html/prestashop/prestashop_1.7.0.4/app/cache/dev/namespaced_class_stub.php): No such file or directory in /var/www/html/prestashop/prestashop_1.7.0.4/classes/PrestaShopAutoload.php on line 254 Warning: require_once(/var/www/html/prestashop/prestashop_1.7.0.4/app/cache/dev/appParameters.php): failed to open stream: No such file or directory in /var/www/html/prestashop/prestashop_1.7.0.4/config/bootstrap.php on line 86 Fatal error: require_once(): Failed opening required '/var/www/html/prestashop/prestashop_1.7.0.4/app/cache/dev/appParameters.php' (include_path='/var/www/html/prestashop/prestashop_1.7.0.4/vendor/pear/pear_exception:/var/www/html/prestashop/prestashop_1.7.0.4/vendor/pear/console_getopt:/var/www/html/prestashop/prestashop_1.7.0.4/vendor/pear/pear-core-minimal/src:/var/www/html/prestashop/prestashop_1.7.0.4/vendor/pear/archive_tar:.:/usr/share/php') in /var/www/html/prestashop/prestashop_1.7.0.4/config/bootstrap.php on line 86 This looks like another permissions error but I have not been able to work out where. If someone has input on this I would love to hear! --- to get around this and still see errors you can just set @ini_set('display_errors', 'on'); on line 38 of defines.inc.php or Set the ownership off all files in the prestshop folder to www-data and my user to the group sudo chown www-data:myusername -R ./prestashopfolder then i set the group permissions to match the users sudo chmod -R g=u ./prestashopfolder Again not for production but seems to get me into a state i can do some dev work :/ Anyway hope that helps. Edited January 21, 2017 by hygap (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now