I have a problem, that i cannot solve for a few days. I am trying to migrate from one server to another with opencart 1.5.6.1 and always getting the same error when trying to get to admin, frontpage works well..
Fatal error: Call to a member function getFirstName() on a non-object in ....../public_html/catalog/controller/common/header.php on line 50
header.php line 50
$this->data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL'));
What i've already tried:
recopy files few times from server to server
rewrittn admin/config.php and config.php few times
In header php. line 50 changed $this->customer->getFirstName() to $this->customer->getFirstName()
modified user permissions of config.php...
nothing helps, i still get the same error.
Please, help ! :)
I dont have a clue how to do var_dump($this->customer) :).
I don't understand why the same web site is working on one server perfectly, but when I copy all the contents of it with filezilla to another server, edit both config.php files, import database, the frontpage works fine, but admin doesn't and i always get the same error. Maybe I am doing something wrong while moving to another server ?
Related
I was moving some map files, and I rebooted my server (FiveM) and when I called it again it started to give this problem, I undo everything I did, I put the old files again, but the error kept happening. And I do not know what to do to solve it.
I threw all the changed files back to normal, but it did not solve anything.
local cfg = module("cfg/blips_markers")
-- add additional static blips/markers
AddEventHandler("vRP:playerSpawn",function(user_id, source, first_spawn)
if first_spawn then
for k,v in pairs(cfg.blips) do
vRPclient.addBlip(source,{v[1],v[2],v[3],v[4],v[5],v[6]})
end
for k,v in pairs(cfg.markers) do
vRPclient.addMarker(source,{v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11]})
end
end
end)
Inside the server the blip_markes are gone and some player data too, because of that.
A quick debug would be to assign cfg the value of an integer, if your problem solves, you know that something is wrong with module("cfg/blips_markers"). However, please provide the code associated with module("cfg/blips_markers").
The app create sessions for videoconferences and one of the values is a session id that takes from from tokbox. This was working for a lot of time, so in this days started to get the following error many attempts, and many other attempts runs ok, here the message from console:
REXML::ParseException (Missing end tag for 'hr' (got "body")
Line: 6
Position: 169
Last 80 unconsumed characters:
):
All seems that missing content from the tokbox id, no code change while this time lapse since this start happening.
Solved!
Update the gem, Tokbox started to remove support from no secure connections.
Also you need to change OpenTokSDK class names to OpenTok.
i'm working on a tuleap project that's run in a docker container , i added new classes and i want to apply a refresh to the autoload file so
this the Link that help me to do this,
https://tuleap.net/doc/en/developer-guide/autoload.html
But when i execute
make autoload-docker
I have this error
docker:unauthorized authentication required
Any one can help me to resolve this issue ?Thx.marwen
The echo twimlet gives this error in the developer console when trying to save:
TypeError: $(...) is null
base.js:2:20968
TypeError: t is not a function
Ajax.Request<.initialize()
ext.js:1
t()
ext.js:1
Ext.lib.Ajax.request()
ext.js:4
.request()
ext.js:6
.save()
twimlets.js:1
Ext.Button<.onClick()
ext.js:13
E/a()
ext.js:5
n/a()
ext.js:3
ext.js:1:18861
Any ideas on what might be the problem? I've tried even a very simple echo twimlet, as well as trying to edit an existing twimlet.
There is currently an issue with editing saved Twimlets. An error will occur when you attempt to edit a saved Twimlet. However, this error does not apply when generating a new Twimlet.
We are moving towards using Twiml Bins in the Twilio Console. You can create request URLs containing some TwiML instructions and save and edit them at anytime.
It can be a bit of extra work to do this from scratch so if you are really hoping to stick with the Twimlet, alternatively, be sure to check your URL encoding.
I'm having some trouble: I have an MSM-site, on both staging- and live-servers. I'm developing the secondary site, and have just moved to the live-server. Weird thing is it cannot connect to db. My bootstrapped config has this if-statement:
if($_SERVER['HTTP_HOST'] == 'www.domain.com' || $_SERVER['HTTP_HOST'] == 'en.domain.com')
This doesn't seem to evaluate properly, because ExpressionEngine can't load site preferences. So to test I've created a simple php file on the subdomain which just echoes $_SERVER['HTTP_HOST'], and that outputs en.domain.com. So why would this evaluate properly in vanille PHP but not in ExpressionEngine? Any thoughts?
Ok we found the problem. Apparently this server wasn't too happy about the use of || (double pipe) as OR, so we put it in its own separate elseif statement and now its working.
Whenever I have an issue like this, I put a die('Conig File'); to make sure that the config file is getting processed. You will obviously notice if the config file is being read or not. Once you can verify that it is being read, then you can move to figuring out why its not being processed.