Joomla Hello World tutorial not working - components

Short version:
I installed this Hello World component in my Joomla 2.5 environment and although everything went fine during the installation, I am getting a 500 server error when I am trying to access it.
Can anyone let me know whether loading the above mentioned component in their Joomla 2.5 environment let me know whether it is working fine for them? And if accessing this URL works (the hostname and Joomla path may have to be adjusted):
http://localhost/joomla/index.php?option=com_helloworld
At least I will know it whether it is a problem with my Joomla installation.
Longer version:
I read this Joomla tutorial: http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_configuration
and downloaded the code from the "archive" link on that page. I uploaded the component on my Joomla 2.5.14 installation, but the component does not seem to work. Well, the administrative part of the component works, but not the end-user part.
Here is how I access it:
http://localhost/~myusername/joomla/index.php?option=com_helloworld
However this page gives me a 500 error:
Error: 500
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:
Home Page
Search this site
If difficulties persist, please contact the System Administrator of this site and report the error below..
Call stack
# Function Location
1 JSite->dispatch() /Users/myusername/Sites/joomla/index.php:42
2 JComponentHelper::renderComponent() /Users/myusername/Sites/joomla/includes/application.php:197
3 JComponentHelper::executeComponent() /Users/myusername/Sites/joomla/libraries/joomla/application/component/helper.php:351
4 require_once() /Users/myusername/Sites/joomla/libraries/joomla/application/component/helper.php:383
5 JController->execute() /Users/myusername/Sites/joomla/components/com_helloworld/helloworld.php:23
6 JController->display() /Users/myusername/Sites/joomla/libraries/joomla/application/component/controller.php:761
7 HelloWorldViewHelloWorld->display() /Users/myusername/Sites/joomla/libraries/joomla/application/component/controller.php:722
8 JError::raiseError() /Users/myusername/Sites/joomla/components/com_helloworld/views/helloworld/view.html.php:33
9 JError::raise() /Users/myusername/Sites/joomla/libraries/joomla/error/error.php:251
I am running this on OS X (10.8.4) with PHP 5.3.15 and MySQL 5.5.27.
Am I using the proper URL to call this component, or am I supposed to supply more query string parameters?
One thing I have noticed is that the tutorial is for Joomla 2.5, but the archive is for Joomla 1.6. Are Joomla 1.6 components supposed to work with Joomla 2.5? Joomla did not complain when I installed the component though.

Francois,
welcome to the world of Joomla. You are correct when you say that joomla 1.6 components should work fine on a 2.5 but that's not all true. There has been many complaints on this issue and it seems that some components are not compatible with higher/lower Joomla versions.
This is due to some sort of conflict inside of the code and different calls made/used to the components.
I believe it would be possible to fix these fatal errors since I have gone through this myself but you would have to go through the code and killing the code to see where it passes and where not and change those calls which are not compatible.
Sorry for not having an 100% solution but this could give you an idea of what the problem may be.

Related

If I provided incorrect subdomain name during Kabanero Foundation installation, how to fix it?

I provided incorrect subdomain name during Kabanero Foundation installation on OKD. Now my Application-->Routes are wrong. How to fix that?
For Kabanero Landing Page, my link is: https://kabanero-landing-kabanero./
I tried https://kabanero-landing-kabanero./ but I get
Application is not available
The application is currently not serving requests at this endpoint. It may not have been started or is still starting.
Expected: Kabanero Landing Page
Actual: Application is not available
The application is currently not serving requests at this endpoint. It may not have been started or is still starting.
There really is no good way to fix it. There is not a good manner to change the routes automatically. Assuming you are early in your install, you should be able to clone the 0.2.0 (if you installed 0.2.0) support scripts from https://github.com/kabanero-io/kabanero-foundation/tree/0.2.0/scripts and run the uninstall-kabanero-foundation.sh script to remove the foundation and reinstall. You should be able to keep the OKD install that you have done.
If there are enough people that hit this, I can put a requirement in place to provide an update script to change this value and restart.

Facing export issue after upgrade site from Kentico 8.2 to Kentico 9

I have upgraded Kentico site from Kentico 8.2 to Kentico 9.0, everything was looking pretty and working smoothly. But when I tried to export my own site, I got Exception with following statement.
“Conversion failed when converting from a character string to unique identifier”.
From your current description it is impossible to tell what might have broken. The exception you are getting is very common and you can find many examples of reason why it happens here in SO.
However, what might be related to your question in Kentico is whether the upgrade you performed was successful. Try checking CMS_SettingsKey table for following KeyNames
CMSDBVersion
CMSDataVersion
Are they both set to 9.0? If not, the upgrade was not entirely successful. If yes, then there is some other issue within the data in your database for which we would need much more information.
Some of the class form definitions haven't been upgraded properly. Try the upgrade again and make sure you perform all the Steps after upgrade, especially "Running the website - First request".

DotNetNuke module development errors after upgrading to VS 2012

I have been working on building a DNN module in VS 2010 under DNN 7.0.3. My module has a few controls, a web service, and some jQuery/Ajax calls to the web service. I am working in Windows 7 with IIS 7. Everything was fine until I upgraded to VS 2012. After that, I was getting 500 errors for all the files I am loading into my control, i.e. javascript files, css files, and even images (never saw a 500 error on an image before!). I tried rolling back my project to before I loaded it into VS 2012, but that didn't help. I found this article: Setting up separate ASP.NET app with DotNetNuke
and implemented the suggestion in answer 2 (adding location... to the web config file). That fixed most of the problems, but I am still getting 500 errors for 2 HttpHandlers I built (which just spit out some javascript) and for any calls to my web service. The error I am getting now is:
Parser Error. An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
It kind of looks like it can't find the codebehind for these files. That makes some sense, since that was basically the problem it was having with all the files before I added the tag to the web.config.
I tried a clean install of DNN 7.0.6 and just installed my module from the package that was created earlier, but still the same errors. Since I haven't made any change to my code since it was last working, I am pretty sure the problem has something to do with changes the VS 2012 install made to my machine but I have no idea what. Please help!!!
Thank you :-)
Check to see if you have a VIRTUAL DIRECTORY or Application on the DesktopModules folder, or on the Module's folder in there, sometimes that happens in VS.
Also make sure there is NOT a web.config file in the MODULE folder.

Runtime error: "Cannot find the library com.ibm.xsp.extlib.library" (browser)

I just created my first Xpage application, and I now wanted to port it to a simple mobile application, using the mobile controls in the Xpages Extension Library. Notes/Domino 8.5.3 Upgrade Pack 1 are installed on both client/Designer and server.
The Xpage application works fine in both client and browser.
I created a new Xpage, called "mobileMainPage", and simply add a Single Page Application control to it, save the file and attempt to open it through a browser (Safari first, then IE 9 just to test). In both cases I get the following error message:
Unexpected runtime error
The runtime has encountered an unexpected error.
Exception
Cannot find the library com.ibm.xsp.extlib.library, required by the application /Contacts.nsf.
I am opening the database on the server (entering the URL of the .xsp file in the browser). I am not using the preview browser feature of Domino Designer, but is calling the page like a user would.
How do I fix this? I even tried to install Upgrade Pack 1 once more. Still getting the same error message.
It really sounds like the library is not installed on the server.
type tell http osgi ss com.ibm.xsp.extlib on the server console and verify that the plugin is installed, that command should return a list of the extlib plugins and fragments and if they have been correctly resolved or not.
in your Domino console type:
tell http xsp diag com.ibm.xsp.extlib
also try:
tell http xsp diag com.ibm.xsp.extlib.mobile
This will tell you whether or not the plugin is resolved. If the plugin is not found it means the plugin is not installed the to correct location (domino/data/domino/workspace/applications/eclipse/plugins).. If a plugin that extlib depends on is not resolved it will show in the console.
Chapter 3 of the XPages Portable Command Guide goes into this in great detail :-)
Let me know the results of the above command
Make sure to tell your app that it should use the extension library. Open the Application Properties and go to the Advanced tab. Here, verify that the 'com.ibm.xsp.extlib.library' is checked.
I just encountered a similar issue when firing up a new server in a virtual machine (was testing out an issue with different server version). I included notes.ini setting OSGI_HTTP_DYNAMIC_BUNDLES and pointed it to a updatesite database I hastily replicated over from another server.
I am not certain for sure, but once I added my new server to the updatesite and restarted http, it took.

Kohana 3 under PHP 5.1.6

I've been experimenting with Kohana 3 for the past few weeks, and up to now I was quite impressed. I just upload my project to the live server, and I realized I needed one of the lastest version of PHP (5.3) and that I'm stuck with 5.1.6, with this said server.
Now, this may not be the cause of the problem, but every PHP variable found in the views aren't parsed correctly. For example, if I output a link
echo Html::anchor('form/registration', 'I Accept,<br />Enter', array('class' => 'left'));
I'll have :
<a href="" class="">
So I guess I'm missing some functionalities of PHP which they added in the lastest version. Any ideas?
I resolved the issue. The problem was related to the version of PHP, I did upload the app on another server running PHP 5.3.X, and everything was okay, confirming my doubts.
I did track the bug to a certain function which used PHP's htmlspecialchars (HTML::chars) - anyway, I simply used Kohana 2.3 equivalent function and everything is now fine. Well, I had to deal with some other issue, related to PHP 5.1.6 (why, in the name of the holy mother of god, any hosting solution would still be using this backward version?), but at least I didn't had to rewrite the app under another framework of under an older version of Kohana.

Resources