Message Boards

Back

Change icon

Toggle
Change icon
Answer
11/28/21, 10:42 PM
Hello!

How can I change the favicon in Unify corporate Theme in Liferay 7.3 GA6?

Thanks.
0 (0 Votes)

RE: Change icon
Answer
11/28/21, 11:09 PM as a reply to Francesc Sanz.
Hello,

We will update the version Liferay 7.3 GA6 of the theme and we will send you the link to download the war and the zip files.

Regards,
Sabri BEN SALEM
0 (0 Votes)

RE: Change icon
Answer
11/30/21, 5:36 AM as a reply to sabri ben salem.
Hello,

I sent an email containing the links to download the Liferay 7.3 GA6 version.

Regards,
Sabri BEN SALEM
0 (0 Votes)

RE: Change icon
Answer
11/30/21, 10:43 PM as a reply to sabri ben salem.
Hello,
You need to use the same steps to Liferay 7.4 to resolve the issue:
- Can you change the theme of your site to Classic Theme
- Delete the site template Unify-corporate-theme.
- Deploy the theme again.
- Change the theme of your site to Unify-corporate-theme (same steps)
The gulp version is CLI version: 2.3.0 and the node version is v14.18.1
0 (0 Votes)

RE: Change icon
Answer
12/1/21, 4:10 AM as a reply to sabri ben salem.
Yes, I have all my sites with Classic Theme, and I delete Unify-corporate-theme, but when I deploy the theme, I get this error:

2021-11-30 16:57:52.864 ERROR [liferay/hot_deploy-2][SerialDestination:65] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={companyId=0, groupId=0, command=deploy, servletContextName=unify-corporate-theme}}
com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.exception.ModelListenerException: com.liferay.friendly.url.exception.DuplicateFriendlyURLEntryException: {mvccVersion=0, ctCollectionId=0, friendlyURLEntryLocalizationId=202, companyId=20097, friendlyURLEntryId=37612, languageId=es_ES, urlTitle=/home, groupId=37609, classNameId=36463, classPK=12}

About gulp, it also gives me error when I compile the theme:

gulp -v
CLI version: 2.3.0
Local version: 2.3.0

node -v
v14.18.2

gulp build
[10:47:46] Unsupported gulp version
0 (0 Votes)

RE: Change icon
Answer
12/2/21, 10:42 PM as a reply to Francesc Sanz.
I have installed liferay-theme-tasks, but when compiling with gulp it tells me the same error. Version 2.3.0 gives an error:

gulp -v
CLI version: 2.3.0
Local version: 2.3.0

gulp build
[10:31:36] Unsupported gulp version
0 (0 Votes)

RE: Change icon
Answer
12/2/21, 11:18 PM as a reply to Francesc Sanz.
Hello,

Upgrade the gulp version to the latest version 

1
npm i gulp

https://www.npmjs.com/package/gulp
0 (0 Votes)

RE: Change icon
Answer
12/3/21, 2:11 AM as a reply to sabri ben salem.
gulp -v
CLI version 2.7.0
Local version 2.7.0

gulp build
Using file /home/.../unify-corporate-theme/gulpfile.js
Working directory changed to /home/.../unify-corporate-theme
/home/.../unify-corporate-theme/node_modules/liferay-theme-tasks/plugin/tasks/init.js:31
    gulp.task('init', gulp.series('plugin:init'));
                           ^

TypeError: gulp.series is not a function
    at module.exports (/home/.../unify-corporate-theme/node_modules/liferay-theme-tasks/plugin/tasks/init.js:31:25)
    at Object.registerTasks (/home/.../unify-corporate-theme/node_modules/liferay-theme-tasks/plugin/index.js:52:2)
    at Object.registerTasks (/home/.../unify-corporate-theme/node_modules/liferay-theme-tasks/theme/index.js:50:9)
    at Object.<anonymous> (/home/.../unify-corporate-theme/gulpfile.js:6:19)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at loadGulpFile (/usr/local/lib/node_modules/gulp/bin/gulp.js:94:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:49:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47
0 (0 Votes)

RE: Change icon
Answer
12/3/21, 8:34 AM as a reply to Francesc Sanz.
Hello,

Remove the node_modules folder under the theme folder and compile again.

Regards,
Sabri BEN SALEM
0 (0 Votes)

RE: Change icon
Answer
12/4/21, 2:31 AM as a reply to sabri ben salem.
Hello! Thanks for your help, but I can't compile the theme emoticon

gulp build
No local gulp install found in /home/.../unify-corporate-theme
You need to npm install it first

npm install -> OK

gulp build same error: TypeError: gulp.series is not a function

I have tried updating gulp to version 3

gulp -v
[14:30:07] CLI version 3.8.8
[14:30:07] Local version 3.8.8

rm -rf node_modules
npm install
gulp build

and it gives me this error:

fs.js:40
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:40:5
    at req_ (/home/.../unify-corporate-theme/node_modules/natives/index.js:143:24)
    at Object.req (/home/.../unify-corporate-theme/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/.../unify-corporate-theme/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
0 (0 Votes)

RE: Change icon
Answer
12/5/21, 9:44 PM as a reply to Francesc Sanz.
Hello,

Did you install the latest version of node js ( my version is 14)?

Can you send us your package.json file under the theme folder?


Regards,
Sabri BEN SALEM 
0 (0 Votes)

RE: Change icon
Answer
12/6/21, 1:14 AM as a reply to sabri ben salem.
Hello!

node -v
v14.18.2

gulp build
fs.js:40
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:40:5
    at req_ (/home/.../unify-corporate-theme/node_modules/natives/index.js:143:24)
    at Object.req (/home/.../unify-corporate-theme/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/.../unify-corporate-theme/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)

I have attached the package.json.

Regards

Attachments:

0 (0 Votes)