What?
This is a quick note on one reason you may get the above error in a Joomla CMS environment.

copyraw
Call to a member function mark() on a non-object in /public_html/index.php
  1.  Call to a member function mark() on a non-object in /public_html/index.php 

How?
Not really a solution here because this is indicating that the system can't find the core framework files. Yes the bad news is you have lost your site. The good news is that it's only the core files and component files. Here are some tips when restoring the site to return it to as it was.
Category: Joomla :: Article: 536

What?
I'm writing a Joomla 2.5.x component for logging time and projects and need a dropdown to have selectable options restricted to the logged-in user. This is specified in the XML file of the custom Joomla component and needs some SQL dependent on some dynamic variables.

Why?
In Joomla, the XML type of "sql" is extremely limited. The component I'm making has to ensure user's can only see their own projects and not everyone's:
copyraw
SELECT * FROM #__projects ORDER BY name

-- yields all projects irrespective of which user is logged in
  1.  SELECT * FROM #__projects ORDER BY name 
  2.   
  3.  -- yields all projects irrespective of which user is logged in 
What I want:
copyraw
SELECT * FROM #__projects WHERE user_id=<logged_in_user> ORDER BY name
  1.  SELECT * FROM #__projects WHERE user_id=<logged_in_user> ORDER BY name 

Please Note: This article focuses on a front-end form dropdown. If you would like to see how to do modals for the admin panel, see my article Joomla article modal with clear button for Joomla article selection.

How?
Category: Joomla :: Article: 530

What?
I'm making a custom component for Joomla CMS 2.5.x which is restricted to registered users only. On installation, and by default, the menu item returns a 500 - Server Error because the parameters haven't been set. I need to go into the Joomla Admin panel, view the Options of the component, and click on "Save"... despite the fact that I don't change anything.

How?

Applies to:
  • Joomla! CMS 2.5.x

Joomla Filter: Validation OnSave
  • INT Forces the value to be an Integer

  • UINT Forces the value to be an absolute number (-4.2 becomes 4.2)

  • FLOAT Forces the value to be a floating point value

  • BOOL Forces the value to be true or false

  • WORD Strips anything that is not letters (including numbers)

  • ALNUM Forces the value to be alphanumeric (Letters and numbers only. No special characters)

  • CMD Forces the value to be alphanumeric plus the following three special characters _ (underscore) . (dot) - (dash)

  • BASE64 Forces the value to be a base64 encoded the string. Note it does not encode the string, it simply strips characters that may not exist in a base 64 encoded string.

  • STRING Removes HTML

  • HTML Allows basic HTML

  • ARRAY Forces value to be an array

  • PATH Forces value to be a file path

  • USERNAME Forces value to only contain characters allowed in the selection of a Joomla username

  • UNSET Completely remove any input

  • RAW Allow any content

  • URL Forces content to be a URL

  • TEL Forces content to be a properly formatted US phone number

What?
A quick reminder on how to disable user registration in Joomla! CMS version 1.5.x without using the Joomla! CMS back-end panel.

Why?
Because we're having some corruption issues and simply using the Joomla! administrator panel to navigate to global configuration, does not work!

How?
It isn't in the configuration.php file prior to Joomla! v1.6.x but in the database.
  1. Open the database to the Joomla 1.5.x website
  2. Browse the table "jos_components" (or "#__components" where "#_" is the site table prefix. default is "jos").
  3. Open the row where name="User Manager"
  4. Set the value under params for AllowUserRegistration
    • allowUserRegistration=0 to disable it.
    • allowUserRegistration=1 to enable it.

Not Working?
Are you sure you are using the Joomla user component or a 3rd-party such as Community Builder or K2? If so, you're in trouble as you HAVE to use the joomla admin panel to edit the settings of the 3rd party components.


- Applies to Joomla 2.5.x +, 3.4.x

What?
So I can't stand the way the default "Search" component in Joomla works. The default is to sort the results by popularity (hits) or by most recently added (depending on your version) which I have never seen in any other system.

I've googled and binged but could not find anything that documents how to bring it into line with other search systems. So here we go, hope this helps you.


Why?
I've created search systems for a plethora of other systems. The aim of this article is to enhance the Joomla search into par with Google and Wikipedia (or near enough).


How?

What?
This is a quick article on what I change the error page for Joomla websites to. I like a clean error page, for a demo visit http://www.joellipman.com/my_error_page.
  • Applies to Joomla 1.6.x, 1.7.x, 2.5.x

How?
  1. Backup the file \templates\system\error.php
  2. Create a replacement file called error.php including the below code
  3. Change the message "The Page you are looking for..." to what you want.
  4. Change the link "www.joellipman.com" to the "www.yoursitename.com".
  5. [Optional] If you want the image that creates the shadow you can download it here. I put it in the folder \templates\system\images.

What?
Apologies for posting yet another article on how to access the Joomla Database using the Joomla classes but this is just a quick note for myself as a reference sheet. Plus the official documentation don't have enough examples in my view. Source: http://docs.joomla.org/ for v1.5.x and for v2.5.x

This article applies to Joomla 1.5.x, 2.5.x and 3.x.


What?
More for others than for myself, but this article is for those who do not have development/test environments of their Joomla website.

I have been doing this for years and still come across clients who have the one version of their website. They experiment on their customer-facing website and in most cases, they are paying for a hosting package which would allow them to have several copies of their website.


What?
Quick article here as googling/binging for how to refer to Joomla articles after versions 1.5.x wasn't obvious. This article is to demonstrate how to write the webaddress for a Joomla article even when you have Search-engine-friendly website addresses enabled.

How?
Basically you have to include &view=article as opposed to Joomla v1.5.x when the option and id parameters would suffice:
copyraw
- SEF URL
http://www.joellipman.com/support/documentation/449-module-joes-word-cloud-jwc.html

- Direct Link (irrespective of SEF)
http://www.joellipman.com/?option=com_content&view=article&id=449
  1.  - SEF URL 
  2.  http://www.joellipman.com/support/documentation/449-module-joes-word-cloud-jwc.html 
  3.   
  4.  - Direct Link (irrespective of SEF) 
  5.  http://www.joellipman.com/?option=com_content&view=article&id=449 
Category: Joomla :: Article: 458

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

RSS Feed

Related Articles

Joes Revolver Map

Joes Word Cloud

page   code   table   creator   report   script   database   first   order   client   work   parameter   used   added   mysql   create   data   function   version   error   windows   display   files   file   using   would   note   google   user   source   where   name   find   field   following   date   joomla   form   list   system   license   time   value   server   need   website   deluge   zoho   case   uploaded   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.