Cannot login to Joomla back or front end nor view getting started article after fresh install - authentication

I've installed Joomla 3.4.4 (twice) with exactly the same outcome.
Problems:
- when entering ANY information into the username and password field on the back end login page, the page refreshed back to the login page without any errors or warnings on the page or in the server logs.
- the same for trying to login on the front end.
- When visiting the site, below the site title and header image a message is displayed "Error: You are not authorised to view this resource."
Both after and before installing joomla I uploaded a .user.ini to turn off magic quotes.
The configuration.php has correct settings for life site, session time out and a correct location for logs and temp files.
I've verified that the logs and tmp directory are writeable from Joomla (added code to create and write to a file in both directories).
I've checked all the modules and plugins in the database.
I've set session_save_path to a location that is writeable.
I've ruled out redirections from .htaccess.
I've enabled all messages to be displayed.
A valid cookie is sent to the browser and back to the site.
The jos1 database contains the cookies sent to the browser
The jos1 database has correct settings for both user and group
There was an warning about an unserializable object I've checked out. It's in Registry.php line 100:
public function __clone()
{
$this->data = unserialize(serialize($this->data));
}
When print_ring $this->data the following is shown:
��j Object
(
[article_layout] => _:default
[show_title] => 1
[link_titles] => 1
[show_intro] => 1
[show_category] => 1
[link_category] => 1
[show_parent_category] => 0
[link_parent_category] => 0
[show_author] => 1
[link_author] => 0
[show_create_date] => 0
[show_modify_date] => 0
[show_publish_date] => 1
[show_item_navigation] => 1
[show_vote] => 0
[show_readmore] => 1
[show_readmore_title] => 1
[readmore_limit] => 100
[show_icons] => 1
[show_print_icon] => 1
[show_email_icon] => 1
[show_hits] => 1
[show_noauth] => 0
[show_publishing_options] => 1
[show_article_options] => 1
[save_history] => 1
[history_limit] => 10
[show_urls_images_frontend] => 0
[show_urls_images_backend] => 1
[targeta] => 0
[targetb] => 0
[targetc] => 0
[float_intro] => left
[float_fulltext] => left
[category_layout] => _:blog
[show_category_title] => 0
[show_description] => 0
[show_description_image] => 0
[maxLevel] => 1
[show_empty_categories] => 0
[show_no_articles] => 1
[show_subcat_desc] => 1
[show_cat_num_articles] => 0
[show_base_description] => 1
[maxLevelcat] => -1
[show_empty_categories_cat] => 0
[show_subcat_desc_cat] => 1
[show_cat_num_articles_cat] => 1
[num_leading_articles] => 1
[num_intro_articles] => 4
[num_columns] => 2
[num_links] => 4
[multi_column_order] => 0
[show_subcategory_content] => 0
[show_pagination_limit] => 1
[filter_field] => hide
[show_headings] => 1
[list_show_date] => 0
[date_format] =>
[list_show_hits] => 1
[list_show_author] => 1
[orderby_pri] => order
[orderby_sec] => rdate
[order_date] => published
[show_pagination] => 2
[show_pagination_results] => 1
[show_feed_link] => 1
[feed_summary] => 0
)
and
��j Object
(
)
With both can be serialized but not be unserialized by PHP. I decided to comment out the line cloning the data. After this the 'Getting Started' article didn't give the error any more, but showed the article as normal. The names of the objects raise concern with me, I've never seen such names before in PHP When I print other variables. I for instance get Joomla\Register\Register Object
But this did not fix the login problem.
I'm pretty completely at a loss.
Edit:
In the database a session is created:
session_id=d984e4c528453009a9ba77ace5f58d9e,
client_id=1,
guest=1,
time=1442060444,
data=zq9ZfjiuKiKB8tyC3yEB2yREY_tylC7CD1K14M6XLIt01gwDUMTq1yY5DMVYhVUDTtPS1vmM1BFdBECdnMg0eKHlAWdZ9JwYdRNFKZl8wU_eAF61Im9d5dIy2r7Kt34upgLDzY4hmDA2EimXm-d2uKO9J6vElLCbcwFZGR2yHUq21RBQvx1wdnBMjk78z6UlI0zF9YXO6wH4WNdUlROJ85BDdhccRBrw52rzRxkpker23_nzeBK4K6nw_Eb2GN-fRAQ25PZr0XxRAtbrGAF5JvGHJDwbL9Kc34eDgOYcBwXlbCICA7be1S64K54VwYUdXZqlnqDbWUEUKb3EdvQZExY5IYRcP5McdiM2s-RYwmWpvtpIIu8VMNn1T_5c_K0gonIdngPUQeiI4r0NOncGWWt7qNjoamX8u86WVVqIVY9ufxb8Wo5INgLIUhy_TAhfBl_K5CrjNToR-13RVnBjZ1RPBeBj4hHubA2t7IZ6zbSOdPdPLbsQVYD2lsU-PjXvcN1eeqkTYNUi8U-qtfYyH-mkidMHK8hbtkS53CKGuo_D4r1K8nO16VlOI0xhK2qR2zSaykXtX_DaAkRF3AI0BvZHBrsxSc6QE2jZkRPYkdyyUnyDoyx2FTSNcPv-JrJ2uDochowEm8jyCazqIXywnmAuYb3bkMN38A7lA1IRhlrCGJY_3xpx6ZBtch4u9bUtBXuQY3E5oV5nPfL2__vW7ZADW5sUHP-e8obRo30b40iIZ3yi6DmnutdGekUi_6a9GyGVDkP3NwAoglbj5pHiLJVhfFZL54XFCuN1sHtlbismkomsx-AkOY6F27hDNCI4B4qFVX87-NF_hk2DWPqRWynCR6OCsLUPkD0apgnr-ea7KPt8qij_eu8Rn6J-RMrgHS7SE314kKoJscEXxwwnBsaoqRCwzwjEl5yHmZYS-bCocgqMGAeOf-VUmCdX-UnqGz5qgXwFBOq4tFrfJ6RQizXVdxkHml3dDmGUPMSHT9To4WXAowT8glRtMdsmZmBigM88xftj3Yr-iYTxiAwfzxPF_T8hG53d1rfPEAm0n8a_q7c6JKy9Z2HrklaqxbQzwGl6r3PwRMCaDxZ_vqq4fsPP4142I4SnAuF2WzEBFOkIyh4EUKesFV4sl4BOc19uIYhz5HSHJybh_9hlV8eB6OSHZYccvaM7F6b46Lh6g-1yDUKazCK8z-fTXHJzf6gn7UFLiWorXCQZspwK_LiW3Huv2B0HIJKxi0fEb8Zmq6juViV8LABZjG_8ZEgDvQ4InahV4k7dKIyQG3gPicaDFLqgtGnwfO2FkU3L1SUU1eAGGcyZDH15RPgfimFiwHt2A5AEPKsnh2jye3X5L53CNaB69ISY0ETVhYzXc7bGi0SADbsAVbFixXZ39IqbFyDaX3rSS0047n_riZm8xNsR6DJ2kB0R1_eWBfN_APqgynK5-Yucis4PuyblY_YwIPs2AQz5iBFgnGGCkbZDxiVG6K6CRBorqpvOPUcBN0fzyOL0xp5WfC5x3nGcbAeVOBBIh1nN7Pj1vDyjfAWGAuw5vP3g647iUmDKaxcRWZ-yGIw.,
userid = 0,
username = ''
Nothing else seems to change. The jos1_users table has an lastvisit date and time set the the date and time of installing Joomla.
No new sessions are created in the database when trying to login multiple times.
With error reporting set to development nothing is reported when visiting and trying to login the administrator back end.
When visiting the site and a few seconds later trying to login the front end this is logged:
[12-Sep-2015 07:42:19 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 6 of 2159 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:19 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 6 of 19 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:19 America/Chicago] PHP Strict Standards: Creating default object from empty value in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 693
[12-Sep-2015 07:42:28 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8 of 615 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:28 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8 of 19 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:28 America/Chicago] PHP Strict Standards: Creating default object from empty value in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 693
[12-Sep-2015 07:42:29 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8 of 2159 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:29 America/Chicago] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8 of 19 bytes in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 82
[12-Sep-2015 07:42:29 America/Chicago] PHP Strict Standards: Creating default object from empty value in /home/.../public_html/.../libraries/vendor/joomla/registry/src/Registry.php on line 693
I also tried installing Drupal on the server to a different subdomain. The only thing it's able to display is these error/warnings. Again about serialization.
Notice: unserialize() [function.unserialize]: Error at offset 53 of 33869 bytes in /home/nningsh1/public_html2/test.iradis.org/includes/cache.inc on line 438
Warning: Invalid argument supplied for foreach() in /home/nningsh1/public_html2/test.iradis.org/includes/module.inc on line 213
Warning: array_keys() expects parameter 1 to be array, null given in /home/nningsh1/public_html2/test.iradis.org/includes/module.inc on line 89
Notice: unserialize() [function.unserialize]: Error at offset 53 of 33869 bytes in /home/nningsh1/public_html2/test.iradis.org/includes/cache.inc on line 438
Warning: Invalid argument supplied for foreach() in /home/nningsh1/public_html2/test.iradis.org/includes/module.inc on line 213
Warning: array_keys() expects parameter 1 to be array, null given in /home/nningsh1/public_html2/test.iradis.org/includes/module.inc on line 89
Fatal error: Call to undefined function user_access() in /home/nningsh1/public_html2/test.iradis.org/includes/menu.inc on line 636

The service provider changed PHP to not use FCGI for our domain. This fixed the problem. Both the serialization problem has been fixed, as is the login problem.

Related

In laravel 10 using passport , Login Get Erro

TypeError: Cannot access offset of type string on string in file
D:\kr_dev\Projects\lara10\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php
on line 89
config(['auth.guards.superusers-api' => 'superusers']);
Auth::guard('superusers-api')->login($user,true);
or
config(['auth.guards.superusers-api' => 'superusers']);
Auth::guard('superusers-api')->attempt(['email' => $dto->email, 'password' => $dto->password], true);
also not working
how i make succesfull login

Shopify APP API

$shopify = shopify\client( $shop, $app_settings->api_key, $shop_data->access_token, false );
$products = $shopify('GET', '/admin/products.json', array('published_status' => 'published'));`
I am getting the following response by printing the $shopify:
Closure Object
(
[static] => Array
(
[base_uri] => https://4f4b14c3eb5464ae238dd6cf4b88bce6:c2608b7067c5bf96028876023114b68c#pilibaba.myshopify.com/
[oauth_token] => c2608b7067c5bf96028876023114b68c
[private_app] => 2f996f1bd2a0f4fb343703555c89a234
)
[parameter] => Array
(
[$method_uri] =>
[$query] =>
[$payload] =>
[&$response_headers] =>
[$request_headers] =>
[$curl_opts] =>
)
)
after that accessing the $product i am getting the following error.
Fatal error:
Uncaught phpish\shopify\CurlException: [3] malformed in /*****/shopify_app/shopify_app.php on line 36 thrown in /******/shopify_app/shopify.php on line 67
Is it a problem with my access token? as i do have all the store permission while installing the app.
I did research for this error by didnt find any help either from shopify support team.
change keys of your url:
apikey = c2608b7067c5bf96028876023114b68c
access_token = 4f4b14c3eb5464ae238dd6cf4b88bce6
https://c2608b7067c5bf96028876023114b68c:4f4b14c3eb5464ae238dd6cf4b88bce6#pilibaba.myshopify.com/admin/shop.json

why chef-metal-ssh is failed

I was trying to follow https://github.com/double-z/chef-metal-ssh
I'm running the code below, it throws the exception:
[2015-01-19T06:03:39-06:00] ERROR: machineone had an error: ArgumentError: wrong number of arguments (2 for 0)
require 'chef_metal_ssh'
name = "one"
with_ssh_cluster("~/metal_ssh")
machine name do
action [:ready, :converge]
machine_options 'ip_address' => '10.62.56.209',
'ssh_options' => {
'user' => 'root',
'keys' => ['/home/chefuser/test.rsa']
}
files '/remote/path.txt' => { :content => 'foo' }
end
machine_execute name do
command "pwd" # this uses new_daemon_key to register with halo
end
I want to know what's wrong of this code. And I don't understand for with_ssh_cluster("~/metal_ssh") what content should be in "~/metal_ssh"? thanks.
I had to dig a little with the code to understand (I'm not using it).
According to the comment below found here
# cluster_path - path to the directory containing the vagrant files,
# which should have been created with the vagrant_cluster resource.
The "~/metal_ssh" file should be the Vagrantfile path.
chaf-metal-ssh is a driver for chef-metal, I'm not sure you're comfortable with chef-metal, so I would advise starting by reading This and This
I've found that the issue is I was using chef 12.0.3, and in line 109 of /usr/local/rvm/gems/ruby-2.0.0-p598/gems/chef-12.0.3/lib/chef/dsl/recipe.rb
resource.load_prior_resource(type, name)
But in chef-metal-ssh-0.1.2/lib/chef/resource/ssh_cluster.rb:18
it's defined as
def load_prior_resource
Chef::Log.debug("Overloading #{resource_name}.load_prior_resource with NOOP")
end
so it throws
ArgumentError: wrong number of arguments (2 for 0)

'The memcache extension must be loaded for using this backend !'

I'm trying to launch a local copy of a Zend-based app, and when I launch it, I get an Internal Server Error (code: 500).
According to the Apache log, memcache is not loaded:
PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'The memcache extension must be loaded for using this backend !' in
/Users/verse/Sites/tag/library/Zend/Cache.php:209
Stack trace:
#0 /Users/verse/Sites/tag/library/Zend/Cache/Backend/Memcached.php(123): >Zend_Cache::throwException('The memcache ex...')
#1 /Users/verse/Sites/tag/library/Zend/Cache.php(153): Zend_Cache_Backend_Memcached->__construct(Array)
#2 /Users/verse/Sites/tag/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Memcached', Array, >false, false)
#3 /Users/verse/Sites/tag/index.php(72): Zend_Cache::factory('Core', 'Memcached', Array, Array)
#4 {main}
thrown in /Users/verse/Sites/tag/library/Zend/Cache.php on line 209
But I explicitly load it in my php.ini: extension="/usr/local/Cellar/php55-memcache/2.2.7/memcache.so"
Moreover, when I type php -i | grep memcache in the terminal, it says that memcache support is enabled:
>
PHP Warning: Module 'memcache' already loaded in Unknown on line 0
Warning: Module 'memcache' already loaded in Unknown on line 0
Additional .ini files parsed => /usr/local/etc/php/5.5/conf.d/ext-memcache.ini,
/usr/local/etc/php/5.5/conf.d/ext-memcached.ini,
memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 8192 => 8192
memcache.default_port => 11211 => 11211
memcache.default_timeout_ms => 1000 => 1000
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => standard => standard
memcache.max_failover_attempts => 20 => 20
memcached
memcached support => enabled
libmemcached version => 1.0.18
memcached.compression_factor => 1.3 => 1.3
memcached.compression_threshold => 2000 => 2000
memcached.compression_type => fastlz => fastlz
memcached.serializer => php => php
memcached.sess_binary => 0 => 0
memcached.sess_connect_timeout => 1000 => 1000
memcached.sess_consistent_hash => 0 => 0
memcached.sess_lock_wait => 150000 => 150000
memcached.sess_locking => 1 => 1
memcached.sess_number_of_replicas => 0 => 0
memcached.sess_prefix => memc.sess.key. => memc.sess.key.
memcached.sess_randomize_replica_read => 0 => 0
memcached.sess_remove_failed => 0 => 0
Registered save handlers => files user memcache memcached redis
However, when I create a dummy index.php, containing only <?php echo phpinfo(); ?>, and open it in the browser, the resulting page doesn't have any mentioning of memcache. And when I try to open my Zend app, it still throws the same error.
Is there a way to ensure that memcache actually loads on the server?

Is there any concept like google plus app access token

I am currently developing an app for Google+. Is there any way to fetch/search public data with out user authentication, I mean, using an app access token
https://www.googleapis.com/oauth2/v1/activities
Yes, see https://developers.google.com/+/api/oauth#apikey which talks about using an API Key instead of using a user login.
Quoting that page:
For Google+ API calls that do not need to identify a particular user, you can use your application API key. This is useful for server-side applications, or web applications that do not require the user to sign in with Google.
[...]
After you have an API key, your application can append the query parameter key=yourAPIKey to all request URLs. The API key is safe for embedding in URLs; it doesn't need any encoding.
You can get the API key via the new Developers Console by going to http://console.developers.google.com/ and selecting your project, then clicking on the APIs & auth tab on the left and then Credentials. There should be a section on the right Public API Access with a button to press to create a new key if one doesn't already exist.
Still no luck,
Here is the response :
Array
(
[url] => https://www.googleapis.com/oauth2/v1/activities?query=stackoverflow&maxResults=100&orderBy=recent&key=54XXXXXXX4723.apps.googleusercontent.com
[content_type] => text/html; charset=UTF-8
[http_code] => 404
[header_size] => 390
[request_size] => 262
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.813163
[namelookup_time] => 0.411874
[connect_time] => 0.454496
[pretransfer_time] => 0.605186
[size_upload] => 0
[size_download] => 9
[speed_download] => 11
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => 0
[starttransfer_time] => 0.813109
[redirect_time] => 0
[certinfo] => Array
(
)
[primary_ip] => XXX.XXX.XXX.XX
[primary_port] => 443
[local_ip] => 192.XXX.XXX.XXXX
[local_port] => 52227
[redirect_url] =>
)
The answer around the key is correct for general public access. However, the URL you are using is not correct. You want the activities list API I suspect: https://developers.google.com/+/api/latest/activities/list
GET https://www.googleapis.com/plus/v1/people/{userId}/activities/public?key={YOUR_KEY}