Welcome, Guest
Username: Password: Remember me

TOPIC: [JOOMLA] Components starting with "J" fatal error

Components starting with "J" fatal error 28 Jun 2013 20:58 #7743

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
I recently found that my component starting with "J" gives a fatal error right after installing.

For the test I created a new project "Jtest" with noting in it and tried to install.
It gives a fatal error in Joomla 2.5.11:

Fatal error: Class 'JtestClassView' not found in /var/www/vhost/xxxxxxxx/public_html/administrator/components/com_jtest/views/cpanel/view.html.php on line 37

When removing the "J" from the component, everything works fine.

Regards,
Paul
The administrator has disabled public write access.

Components starting with "J" fatal error 28 Jun 2013 21:04 #7744

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Right this is not due to Cook, but to the JLoader.

Because of the namespace autoloader, if you put 'J' it will search the class in 'libraries/joomla'
Cook should forbid this name. I totally forgot it.

Do not blame it, this feature is fantastic !
Coding is now a piece of cake
The administrator has disabled public write access.

Components starting with "J" fatal error 29 Jun 2013 06:23 #7747

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Thanks for the info, in the version 2.0, build for J2.5 components starting with "J" works though.
Opinions on whether is is a fantastic feature differ, but it is something I can live with.
The administrator has disabled public write access.

Components starting with "J" fatal error 09 Aug 2013 20:26 #10728

When I rename my project and try to rebuild the files, the "J" remains on the folder in the file view, and therefore when the project is downloaded as a package, it is still using the "J" in the name of the component.

Example: I renamed my project (using the edit button beside the project name). From jmycomponent to "mycomponent". All is good, so I think.

I then try to rebuilt the files, and in the J-Cook "Files" tab, I can see that the folder being used by j-cook for my project is still "jmycomponent".

Needless to say, I get the same Fatal Error that is mentioned above when I install it on my XAMPP local server.

How to remove the "J" from my j-cook project without deleting the project and starting over?
The administrator has disabled public write access.

Components starting with "J" fatal error 16 Aug 2013 14:51 #10791

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Strange...

did you changed the component alias.
com_....

I know it is difficult to set the focus on this field, but it works when you click on the text.
Which PTL ? (Project / Table / Layout)
I will do it for you...
Coding is now a piece of cake
The administrator has disabled public write access.

Components starting with "J" fatal error 19 Aug 2013 14:57 #10822

The project / component name that I am having the problem with is : recordkeeper (used to be named "jrecordkeeper"). When I output / download the files, the component name and folder name is com_jrecordkeeper despite having changed the name in j-cook.

If you could please assist by making the alias change for me, thanks much.

I have attached a screenshot explaining how I was changing the name of the component, which never removed the leading "J" from the component output/download files.

File attached. ... NOT attached. Even though I am uploading a file called change-alias.jpg (file type is jpg), I get a failed file upload msg from the forum software on your site:

Notice

Failed to upload file 'change-project-alias.jpg': You need to use allowed image extension (jpg,jpeg,gif,png).


Just for your information
Last Edit: 19 Aug 2013 15:03 by myopicseer. Reason: to report an error msg on submit that I get from the forum
The administrator has disabled public write access.

Components starting with "J" fatal error 19 Aug 2013 15:17 #10823

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Now it is ok.


The Title was changed, but NOT the ALIAS. (second line)

I have changed it for you.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.128 seconds

Get Started