Error after installing CakePhp in Production setup - cakephp-2.0

guys could somebody please help me out? I have just installed cakephp in my localhost
then I'm already getting errors.
Please check this out for reference screenshot of entire page

There may be a table exist namely 'reservations' in your database for which code is not exist.
Sp please create ReservationController.php in Controller folder as well as its Model in 'Model' Folder.
If you want to access any methods of the RestrictionController you have to create view files accordingly.

Related

DNN Error after creating a module

I was given a project for maintenance, it is built on DNN 9.1.1 and has some custom modules (I am completely new to DNN). I needed to create a new module, so I used the christoc project templates for VS2017. So even before I could develop anything, I rebuilt the solution and it gave me a DNN Error. I removed the project from the solution, but while it compiles correctly, it still gives the same error.
Has anyone ever got this error? Do you think the module are being written to the database and if so, how can I delete it?
I'm posting the errors in the log but it doesn't make sense to me, because no files are missing
DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist. ---> System.Web.HttpParseException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist. ---> System.Web.HttpException: The file '/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx' does not exist.
Thanks in advance for your help.
I found that this is a common error. Funny how it was so hard to find on google. I leave the link here https://www.christoc.com/Tutorials/All-Tutorials/aid/12, and urge everyone with template errors to refer to this site.
In plain, the solution is this:
Load the IIS Manager (start>run>inetmgr.exe)
Expand the Tree view on the left side of the screen until you see the SITES folder
Expand the Sites folder until you find your development site
Expand your development site (DNNDEV.ME) until you see the DesktopModules folder
If the DesktopModules folder has an "arrow" on it, IIS thinks it is a virtual directory, and this is what causes the error above. Right click on the DesktopModules folder, choose Delete.
Reload the site in your web browser, and the error should go away. Do not simply refresh the browser, as the error is in the URL and will likely just reload the error page even though you've fixed the problem
Does the .ascx control exist in the correct path?
'/DesktopModules/GFIPortugal/DotNetNuke.Search.Google/GoogleSearch.ascx'
Maybe you have created an extra subfolder.
try like this:
'/DesktopModules/GFIPortugal/GoogleSearch.ascx'
When you add a new module via Visual Studio unselect the option to create a folder for your project/solution (bottom right of the Add New Project wizard).
Also, check the .dnn file to adjust the mappings of your resources.

Kylo plugin for UI is not working

I would like to extend Kylo user interface. From documentation, i understood that I can use Plugin mechanism to add new features and I am referring to the examples available here.
I have built this example code and deployed the generated jar files to /opt/kylo/kylo-services/plugin folder and restarted the kylo-services.
But I am dont see any changes in the UI. As per my understanding, there should be a new group in left hand navigation pane but there are no UI level changes in the kylo UI.
I am using dladmin userid and logs (kylo-ui and kylo-services) really did not indicate any error.
Where can I see if the plugin is really picked up by kylo? Which logs tell me what is going on with this plugin? Any suggestions will be of great help.
Thanks
Gana
The mistake i did is copying kylo UI into /opt/kylo/kylo-services/plugin folder.
The generated jar files should go into different plugin folders.
Kylo Services plugin should be copied to /opt/kylo/kylo-services/plugin folder.
Kylo UI plugin should be copied to /opt/kylo/kylo-ui/plugin folder.
service kylo-services restart
service kylo-ui restart
And its my bad that i mistakenly copied kylo-ui plugin into kylo-services folder. After I copied into correct folders and service restart, I am able to find the UI changes.
Thanks for your attention.

Watson document conversion not working for my downloaded pdf files

i tried following the steps mentioned "https://github.com/watson-developer-cloud/document-conversion-nodejs" and is able to load the app which works well with sample pdf file.
But when i try using my pdf file it throws error "Missing required parameters:
either params.file or params.document_id must be specified"
Also in the above mentioned git hub link the step 7 is not clear, it mentions run node setup.js but i am not able to find out that file.
has anybody faced this kind of issue.Kindly reply.
Thanks for pointing out the confusing step 7 in the document-conversion-nodejs repo. That's not a valid step and I've submitted a pull request to remove it.
You should be able to change the sample files with your own, if this is what you are trying to do. I would need to see some of your code to maybe figure out what is going on with it.
There is an alternative repository [watson-developer-cloud/node-sdk] that you also can use to create your NodeJS application. It also has an example (examples/document_conversion.v1.js) on how to run the service.
Besides entering your service credentials, all you need to do is place the document you want to convert in the "resources" folder and point to it in this line:
fs.createReadStream(__dirname + '/resources/YOUR_DOCUMENT')
The tutorial and the API documentation could also be of help.

Wordpress database returns error 500

I have upgraded wordpress to latest version 4.2. Wordpress got updated successfully, website is visible. But when i access mywebsite.com/wp-admin It asks me to update to the newest wordpress database, I click that update button and after a while it returns error 500 Internal Server Error.
I tried to rename plugin folder/ my theme as well but to no avail.
Please help me resolve this issue.
Thank you very much,
This was an extremely tricky one! I had to enter PhpMyAdmin and update manually the db_version in wp_options (http://prntscr.com/6yqm5l) with the version number from the latest wordpress download package (http://prntscr.com/6yqnew)
I hope this will help others who ever encounter this issue.
Thank you,

Problem with database in CodeIgniter

I downloaded the last version of CodeIgniter and I tried to run a simple app. The code works perfectly without database, but when I added this
$autoload['libraries'] = array('database');
the page went to blank.
I looked at the logs files but I didn't find anything, I check differents tutorial, but my database.php file looks correctly configured. I removed it from the array.
$autoload['libraries'] = array('');
and added to the controller this:
$this->load->library('database');
Then, this error appeared
An Error was encountered
Unable to load the requested class: database
What I do? Any clue?
Thanks in advance
To autoload the database, you use $autoload['libraries'].
$autoload['libraries'] = array('database')
Or, to load it manually, you use:
$this->load->database();
The database driver is not a normal library, it follows some weird rules.
To use the database you need to use the 'library' autoload instead of the 'config' auto load
$autoload['libraries'] = array('database');
This will actually automatically load up your configurations.
UPDATE
Another thing you mention in your question is that you 'add' that line, you do not need to add that line, you are suppose to add the element to the array that already exists on that line. You potentially could be overwriting other autoloaded libraries, I will need to see your autoload.php file to confirm this.

Resources