User control panel edit changes not saving.

Karl

Member
If I try save my changes on index.php?a=user_cpl&b=edit it goes to a white page and the edits are not saved any ideas.
 

Basti

Administrator
Staff member
Do you have another skin to test with? Properbly edit_form.html is bugged.
Also does that just appear to happen on one member, existing members before the upgrade? or on newly joined members as well?

Hopefully its just that, else we need ot digg deeper
 

Karl

Member
At this stage it is just the default skin that comes with visiolist. The problem is happening on two sites that I have upgraded and it is on existing members. I have not tested this as a new member but I will test
this.
 

Basti

Administrator
Staff member
Well, then the chances are high that its the upgrader fault. properbly some corrupt file, cant say for sure though. Properbly need to wait what mark has to say.
 

Mark

Administrator
Staff member
open index.php and find:

PHP:
error_reporting(E_ERROR | E_PARSE);
replace with

PHP:
//error_reporting(E_ERROR | E_PARSE);
copy and paste the errors that show up at the very top of the page, this will tell us what field is missign from the Database. If you would rather keep the paths private feel free to start a conversation (aka Private Message) with me including the error.


{note: next release this error reporting setting will be moved into the "debug" section, and a switch will be added in the admin to enable "debug mode"}
 

Karl

Member
I got this when adding a rss feed to a users profile the feed is working okay but Im not sure what caused the following error.
Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/xxxxxx/domains/xxxxxx.com/public_html/topsite/sources/misc/classes.php on line 214

 

Mark

Administrator
Staff member
ahh this was an old bug within Aardvark (checking the dimensions of the users banner), I dont recall the fix off the top of my head but will get this fixed up asap.
 

Chukillz

New Member
has any one found a fix for the getimagesize() error?

Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/xxxxxx/public_html/topsites/sources/misc/classes.php on line 191

Warning: getimagesize(http://xxxxx.com/skins/docked/images/logo.png) [function.getimagesize]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in/home/xxxxxx/public_html/topsites/sources/misc/classes.php on line 191

here is lines 184-195

184 if (!$TMPL['title']) {
185 $error_title = 1;
186 }
187 if (!preg_match('/^https?:\/\/.+/', $TMPL['banner_url'])) {
188 $TMPL['banner_url'] = $CONF['default_banner'];
189 }
190 elseif ($CONF['max_banner_width'] && $CONF['max_banner_height'] && ini_get('allow_url_fopen')) {
191 $size = getimagesize($FORM['banner_url']); THIS IS THE LINE THAT IS HAVING ALL OF THE TROUBLE
192 if ($size[0] > $CONF['max_banner_width'] || $size[1] > $CONF['max_banner_height']) {
193 $error_banner_url = 1;
194 }
195 if (!isset($size[0]) && !isset($size[1])) { $error_banner_url = 1; }
 

Basti

Administrator
Staff member
According to my research it has something to do with the servers DNS resolver being borked, so a server issue. Maybe that does ring a bell for mark.

If it really is that it has to be fixed serverside.
For the time beeing
PHP:
191 $size = getimagesize($FORM['banner_url']); THIS IS THE LINE THAT IS HAVING ALL OF THE TROUBLE
change that to
PHP:
191 $size = @getimagesize($FORM['banner_url']); THIS IS THE LINE THAT IS HAVING ALL OF THE TROUBLE
That should atleast hide the error.

Also setting dimension restrictions to 0 in admin settings should get rid of this error.

These are no real solutions though

 

Basti

Administrator
Staff member
The @ method should just get rid of the error display, correct. Though it appears this also solved the error altogether for other people.

Did you tried to set max width height to 0 in admin?

If that aint work also, try removing the banner previews from the control panel ( edit_form.html of your skin )
Code:
<img src="{$banner_url}"  alt="{$lng->g_banner_url}"/>
With that removed should be no instance left of the banner and therefore not throw an error
 
Top