Jump to content

Admin Pages Not Loading With WAMP


Nikki72

Recommended Posts

I've installed 5.1 locally with WAMP and while the front end works fine it seems although i can login to Admin i can't load any other pages unless i'm connected to the internet which is kind of against the point of installing locally lol.

 

This is my first time using WAMP and after posting on their forums it seems that Admin is trying to connect to other internet pages which is why it's not working when i'm not connected to the internet. After posting some of the error messages in the Apache log, the WAMP forums have said:

 

 

Line 1

[Mon Jan 14 10:49:28 2013] [error] [client 127.0.0.1] PHP Warning: htmlentities() [<a href='http://docs.php.net/manual/en/function.htmlentities.php'>function.htmlentities.php</a>]: Invalid multibyte sequence in argument in C:wampwwwCC5.1.5classesdebug.class.php on line 193, referer: [localhost]

Well this is trying to get to

http://docs.php.net/manual/en/function.htmlentities.php

which is definitely not on you laptop


[Mon Jan 14 10:49:28 2013] [error] [client 127.0.0.1] PHP 5. Request->send() C:wampwwwCC5.1.5adminsourcesdashboard.index.inc.php:265, referer: [localhost]

Request->Send() looks like its trying to communicate with the outside world!!

 

I haven't got a clue where to start lol. Any idea's great appreciated :)

Link to comment
Share on other sites

Cubecart 5.1.X wants to contact CubeCart.com to check on what is the latest version available (which is CC515). It then compares the response with the current version. This happens when the Dashboard is brought up for the first time for every admin log-in.

 

Also for the Dashboard, a news feed is requested from CubeCart.com to display the latest five or six news items.

 

CC5 may also want to check in with the CubeCart license servers, although I don't know what actually happens if CC5 can't contact them. I don't know if, in that case, CC5 switches to "Lite" mode, or if "Lite" mode is only activated if there is a missing license number (which seems to be the same - can't contact vs. no license number - but I don't know).

 

The <a> tag link to the URL in the error log is a courtesy provided by PHP to take you to the documentation page for the function that tripped the error. An <a> tag does not automatically cause the browser to fetch anything. <img> tags, <link> tags, <script> tags, on the other hand, has the browser automatically fetch images, CSS files, and javascript resources.

 

Request is the PHP class that has the job of communicating with the outside world. send() is the class method that starts the opening of the comms channel. The problem was determined to be in the dashboard PHP file.

 

Apparently, there is no catching of failures in the Request->send() function.

 

Is it important to you to have your localhost or internal network disconnected from the Internet?

 

To inhibit this communication, in the file /classes/request.class.php, at around line 212, find:

public function send($timeout = null) {

and add at the end of that line:

return false;

 

In CC520, there is another data request made to CubeCart.com that receives a listing and ranking of the most popular (determined how?) shipping and gateway modules, so that these options are sorted by that ranking during the customer's checkout process.

 

By the way, it is possible to have your WAMP server on your local network, but not have your local network connected to the Internet. Then, your personal computer could communicate with the WAMP server by internal IP address or server name, or if you also have an internal DNS provider, by an actual web address that resolves to that server.

Link to comment
Share on other sites

bsmither rushes to my rescue again lol :wub:

Yes i do need to have access without an internet connection. We moved just before xmas and im always having internet problems with it not only being very slow but hit and miss as to whether i can even connect grrrrr.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...