contao theme installation issue . It shows could not find template - contao

I am trying to install Contao theme on my hosting account, but I am getting an error message and am unable to solve the issue.
I read the log file but unable to figure out what is the actual issue.
This is the error that I see in my browser:
enter image description here
These are the errors from my log file:
[2019-02-18 04:34:44] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\FrontendController::indexAction","_scope":"frontend","alias":"home-3"},"request_uri":"http://localhost/contao-sample/web/home-3.html","method":"HEAD"} []
[2019-02-18 04:34:44] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2019-02-18 04:34:44] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\FrontendController::indexAction","_scope":"frontend","alias":"home-3"},"request_uri":"http://localhost/contao-sample/web/home-3.html","method":"GET"} []
[2019-02-18 04:34:44] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2019-02-18 04:34:45] request.CRITICAL: Uncaught PHP Exception Exception: "Could not find template "fe_page_extended"" at /opt/lampp/htdocs/contao-sample/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php line 152 {"exception":"[object] (Exception(code: 0): Could not find template \"fe_page_extended\" at /opt/lampp/htdocs/contao-sample/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:152)"} []

The error message says that you are missing the template fe_page_extended, which you had selected in your page layout. May be you accidentally deleted it or missed it during a deployment. Simply edit your page layout(s) and save it again - or restore the missing template.

Related

How to electron app start with yarn berry?

After moving the code that was running well in the standalone repo to the monorepo, it is not working properly.
As shown in the screen below, the message compiled successfully appears and stopped the message last.
enter image description here
If it is executed normally, the logger message in main.ts that should appear is not visible.
If the below is really executed normally, more messages should appear.
enter image description here
And the following error window appears as if to confirm that an error occurred in main process again.
Error message is here.
A JavaScript error occurred in the main processUncaught Exception:
TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Object.normalize (node:path:1128:5)
at contains (/Users/chai/Codes/apple/.pnp.cjs:32828:18)
at Object.ppath.contains (/Users/chai/Codes/apple/.pnp.cjs:32842:32)
at isPathIgnored (/Users/chai/Codes/apple/.pnp.cjs:41344:27)
at findPackageLocator (/Users/chai/Codes/apple/.pnp.cjs:41414:9)
at Object.findPackageLocator (/Users/chai/Codes/apple/.pnp.cjs:41706:14)
at findApiPathFor (/Users/chai/Codes/apple/.pnp.cjs:41797:41)
at Object.getApiPathFromParent (/Users/chai/Codes/apple/.pnp.cjs:41848:36)
I know that a type error occurred because the path argument that should be entered as a string entered undefined, but I cannot identify the exact location of the error.
However, considering that .pnp.cjs is a 'map' for the dependency and installation location of yarn packages, it can be assumed that there is something wrong with the package installation.
I ran into something similar and the issue was that electron was not loading my .pnp.cjs. To fix this, I add the following environment variable to my start script:
"scripts": {
"start": "NODE_OPTIONS='--require path/to/.pnp.cjs' electron ."
}

Issues with connecting Twilio Flex Digital Channels to Google Dialogflow CX

I have been following the blog post here and I've made it to testing the function on my local environment. I've copy and pasted everything form the blog into my text editor. Nothing in my code is original - but I cannot get it to work! When I try to run it in my local environment, I get this error:
const b = bindings[key].toString();
^
TypeError: Cannot read properties of undefined (reading 'toString')
at PathTemplate.render (/Users/dialogflow-cx/node_modules/google-gax/build/src/pathTemplate.js:114:37)
at SessionsClient.projectLocationAgentSessionPath (/Users/dialogflow-cx/node_modules/#google-cloud/dialogflow-cx/build/src/v3/sessions_client.js:1237:75)
at exports.handler (/Users/Waterfield/dialogflow-cx/functions/dialogflow-detect-intent.protected.js:21:25)
at process.<anonymous> (/Users/dialogflow-cx/node_modules/#twilio/runtime-handler/dist/dev-runtime/internal/functionRunner.js:74:9)
at process.emit (node:events:390:28)
at emit (node:internal/child_process:917:12)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
I don't know where to go from here! Help!
Here your TypeError is "cannot read properties of undefined", that means at least one of your passed arguments is undefined.
As we go through your return error, second line directs to the "projectLocationAgentSessionPath" and this section refers to the "Setup the detectIntentRequest" in the blog .
session: client.projectLocationAgentSessionPath(
context.DIALOGFLOW_CX_PROJECT_ID,
context.DIALOGFLOW_CX_LOCATION,
context.DIALOGFLOW_CX_AGENT_ID,
event.dialogflow_session_id
)
The above error means at least on of the objects that relates to projectId, location, agentId, SessionId is returning undefined.
To resolve the error you have to check whether you are passing correct environment variables the same as .env files or not?
Within the error, we can see that there is a reference to the code you are working on:
at exports.handler (/Users/Waterfield/dialogflow-cx/functions/dialogflow-detect-intent.protected.js:21:25)
This refers to this line:
client.projectLocationAgentSessionPath(
context.DIALOGFLOW_CX_PROJECT_ID,
context.DIALOGFLOW_CX_LOCATION,
context.DIALOGFLOW_CX_AGENT_ID,
event.dialogflow_session_id
)
Following the code through the dialogflow library and then the Google API extensions library shows that ultimately the code is running through the keys of the object that relate to the project, location, agent and session which map to the 4 arguments above. And at least one of them is returning undefined.
Have you added the correct environment variables to your .env file? Are you passing a dialogflow_session_id when you make a request to test this endpoint?

Error on creating news archive on contao 3.5.16

If anyone familiar with contao,
I got a default contao error page when I try to create a news archive, I have check the log and nothing is wrong. Do I need add the news module first?
P.S I am newbie contao user, as a client only asked me to resolve this problem.
Last error log :
[12-Jan-2017 12:46:29 GMT] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Unknown column 'master' in 'where clause' (SELECT id, title
FROM tl_news_archive
WHERE jumpTo IN (315) AND master=0
ORDER BY title)' thrown in /homepages/19/d124359810/htdocs/2016/system/modules/core/library/Contao/Database/Statement.php on line 295
I use 2 languages for the website with language extension.
I wonder if it has something to do with the language setting of main archive, because it somehow tells the error of unknown "master"
this is the screenshot of the interface when I tried to create a news archive.
Image : create new news archive
Your database is missing a column from the changelanguage extension. If you still have this extension installed, simply log into the Contao Install Tool and execute a database update.

On production server at one page I am getting Fatal error ActionView::Template::Error

I am getting this error " ActionView::Template::Error (bad component(expected host component): ): ", on research on stackoverflow I observed this error is occurring on wrong config of mailer. But I have not configured any mails.
From the details shared , the first line indicates error in fetching the data.
A line of action to resolve this could be,
first to check the correctness of data fetch using rails console/sandbox environment.
Once point 1 above is sorted out and still error, then have a look at the view and check the rendering/flow.
This will point you to the error.

Handle Solr error messages from Blacklight

Whenever Solr fails executing a query for some reason it returns an error message and an error code. I would like to handle such errors in Blacklight. Right now, when receiving an error from Solr, the user gets a 500 internal error. As a developer I can see that what happens is an RSolr::Error::Http in CatalogController#index with the following line of code as the source of the problem:
res = blacklight_solr.send_and_receive(path, :params=>solr_params)
Is it possible to customize the error handling so that I can at least display an indicative error message to the user instead of the unhelpful 500 internal error?
Open file lib\blacklight\catalog.rb. The function rsolr_request_error(exception) is responsible to handle Solr errors. The exception parameter is an RSolr::RequestError and it represents the error from Solr. In order to handle the error by displaying the message from Solr just add the following inside the else:
error_status = eval(exception.response[:body])['error']
if !error_status.nil? and !error_status['msg'].nil?
flash_notice = error_status['msg']
else
flash_notice = I18n.t('blacklight.search.errors.request_error')
end
If you wish to display a different message then assign a different message to flash_notice. If you wish to handle the error differently then this is where to do so.

Resources