Direct Access to this location is not allowed.

  • Topic Author
  • Visitor
  • Visitor
15 years 8 months ago #176 by
Hi,
I installed the cbalphauserpoints plug in but get an "Direct Access to this location is not allowed" error.
I use Joomla 1.5.10 and CB 1.2
Anybody have an answer to this?
Thanks
Ken

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #177 by nordmograph
hi

Yes I do

open
alphauserpooints.php and replace the first line:
Code:
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

with:
Code:
if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }

I'll update the package asap

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

  • Topic Author
  • Visitor
  • Visitor
15 years 8 months ago #178 by
Thanks for your quick reply.

I changed the code to the code below and at first it look fine, I could access the plugin in the back which was not possible before.

However, when viewing a CB profile with the published Alphauserpoint tab I got this:

Fatal error: Call to a member function setQuery() on a non-object in /home/w3lln3ss/public_html/components/com_comprofiler/plugin/user/plug_cbalphauserpoints/alphauserpoints.php on line 97

Line 93 is: $query = "SELECT points, referrees, referreid FROM #__alpha_userpoints WHERE userid=". $user->id;
Next line
Line 97 is: $database->setQuery( $query );

Any ideas?

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #179 by nordmograph
Do you have the AlphaUserPoints component installed on your system? It's a requirement to use this cb plugin. If you don't, the plugin might return this error...

Let me know

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

  • Topic Author
  • Visitor
  • Visitor
15 years 8 months ago #180 by
I have the latest version installed, AlphaUserPoints 1.3.0

It works fine and tracks referrals as it should, only when I try to add the CB plugin I have these problems.

Please Log in or Create an account to join the conversation.

Time to create page: 0.355 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.