Jump to content

IPB 2.1.3 Released


Guest IPS News

Recommended Posts

Posted

to see what happens?






Don't use symbols in variables. Most of the special characters such as #, *, and / already have meaning in prgramming languages. Of course, every variable in PHP begins with the $ character, but otherwise you should avoid using punctuation. One exception to this rule is the underscore (_) character, which is allowed in most languages, including PHP. :thumbsup:
  • Replies 546
  • Created
  • Last Reply
Posted








Don't use symbols in variables. Most of the special characters such as #, *, and / already have meaning in prgramming languages. Of course, every variable in PHP begins with the $ character, but otherwise you should avoid using punctuation. One exception to this rule is the underscore (_) character, which is allowed in most languages, including PHP. :thumbsup:



the code is from ipb and im asking becouseof

Passing by Reference



You can pass variable to function by reference, so that function could modify its arguments. The syntax is as follows:





Note that there's no reference sign on function call - only on function definition. Function definition alone is enough to correctly pass the argument by reference. In recent versions of PHP you will get a warning saying that "Call-time pass-by-reference" is deprecated when you use a & in foo(&$a);.



http://pl.php.net/manual/en/language.references.pass.php
Posted

But when we say we have a problem, guys like Quark are so bloody annoying when the most constructive thing to be said is 'works fine for me'.... like we are morons. Grrrrrrrrrrrrrrrrrrrrr....



All I'm going to say at this point is it look's like it's a crime to "dare" express your own view here when a lot of people make a simple forum upgrade a lot more complicated then it is and have problems. I suppose I got a little sick of what seem's like literally the sheer amount of complaint's that are in this topic since 2.1.3 was released.

I guess it's a lesson learned - if you don't have problems with an upgrade, do not, I repeat, DO NOT post about it here because the others who do have problems will call you names here. :rolleyes: So, when the inevitable 2.1.4 comes out I'm not even going to bother because of some of the rude people here.

I will admit myself and that other fellow got carried away, and I do apoligize if I offended anyone else with my actions and or opinions here, but it doesn't help with one other person who couldn't resist sticking his nose into this topic, has had his post reported, and is now on my ignore list as I don't have time for people, no matter how young or old, who are going to be rude towards me.

In short, let it drop, and let this topic go back to normal.
Posted

Yes, this topic isn't intended to discuss member's and their attitudes/posts/etc. Each is open to post his opinion (about the appropriate subject, the upgrade), good or bad (though of course it's nice to hear the good reports now and then too ;) ). Because of that Quark, I don't think you should "shy away" from reporting having no problems. It's nice to hear the positive things too.

Those who are having problems, you are free to post as well so we can identify the problems and sort them for you. Fixes are available for just about every issue that arose in 2.1.3 as a result.

//Back on subject
It is deprecated (though still supported) to pass by call time reference. There are very few places in the script where this is still done, and (thanks to a bug report submitted about this), I have gone through about 15 files and removed the pass by references.

You should use & in the function declaration arguments list to identify an argument as a reference. It is not "proper" to set the & character to identify a reference when calling the function. There is a php.ini setting that will make it so that warning is not produced (allow_call_time_pass_reference). In the mean time, just don't enable notices and it won't hurt anything. The script will operate the same either way. If you choose to go in and enable notices, you are doing so at your own risk, and with no benefit. :)

Posted

Yes, this topic isn't intended to discuss member's and their attitudes/posts/etc. Each is open to post his opinion (about the appropriate subject, the upgrade), good or bad (though of course it's nice to hear the good reports now and then too ;) ). Because of that Quark, I don't think you should "shy away" from reporting having no problems. It's nice to hear the positive things too.


I actually wrote a long post how pleased I am with IPS once, but ended up not posting :D. Personally I'm 100% satisfied with IPS. My tickets are answered promptly, though I'm very new to all of this the IPB install was really simply, so was the Gallery install. Upgrades take 5 minutes. If I'd have trouble upgrading I'd ask an IPS technician to do it... we pay for the service, why not use it.

Thank you IPS, good work! :thumbsup:
Posted

I have gone through about 15 files and removed the pass by references.


If you choose to go in and enable notices, you are doing so at your own risk, and with no benefit.


could you list the files

i wantet only to see the effect and not set it permanently, but will you do something with it - its only a question
i changed my host and therefore i got some issues with the settings but now its oll fine and

and an idea: maybe you could do in fast replay add selected text as quote that its adding the member we are quoting

regards
Posted

I don't have the list of files now. I did a search within files for the pass by reference and the ones I found I corrected. The module loaders were a big one, but there were a few others.

Here is the original bug report if it is of any interest: click me

@michael n...thx :)

@Energizer...there is no word on the release date for it yet.

Posted

Here is the original bug report if it is of any interest

havent been there for sometime

@Energizer...there is no word on the release date for it yet.

its a meter of days or weeks

bfarber you do your job great
Posted

So how do you re-order root forums now? I see how you select their position with the drop down but there's no ok button?

What the heck?

So how do you re-order root forums now? I see how you select their position with the drop down but there's no ok button?



What the heck?



Disregard this post as I am an obvious moron... :ermm:
Posted

Since i upgrade my IPB from 2.0.4 to 2.1.3 the forum is getting very slow and also oppening to many connection to the database.
So many connections, that the whole server is going to hell. I have to restart the server every 30 minutes.
I have to let you know, i have try the new version (2.1.3) in 4 different server with the same resolts.

Anyone knows about this problem?

Or iz it me? o:)

Thank you

Posted

Me too, I kept my old 2.0.0 database in tact, deleted all files exept conf_global.php and uploaded all the new files then ran the upgrade script and it couldn't have gone smoother.

Posted

OK since it is a big upgrade, i will tell you how i have done it:

!!! TAKE YOUR BOARD OFFLINE DURING UPGRADE SESSION IN THE ACP !!!

1. Make a backup of the board database & files:

mysqldump \

  -uroot \

  -p$PASSWORD \

  -hlocalhost \

  --database <BOARD DATABASE NAME> \

  --all \

  --opt \

  --allow-keywords \

  --flush-logs \

  --hex-blob \

  --master-data \

  --max_allowed_packet=16M \

  --quote-names \

  --result-file=BACKUP_IPBBOARD_2.0.X.SQL

Replace <BOARD DATABASE NAME> with the name of your database. copy the complete boardfolder to CD or another location on your harddisc: # mkdir /boardbackup # cp -rp <BOARDFOLDER> /boardbackup 2. Delete all folders / files except: upload folder conf_global.php and if you wish to keep old skins / avatars / emoticons do not delete these folders: style_avatars style_emoticons style_images 3. Upload the new files for IPB 2.1.x with ssh / ftp or what ever 4. chown all files in the board folder to the user & group that the webserver is runing # chown -R apache:apache * (-R is for recursive into all subfolders) 5. chmod the cache folder to 777 (or if you wish it a bit saver to 666) if you use linuxserver #chmod -R 777 * (-R is for recursive into all subfolders) 6. In your webbrowser run the update http://www.yourwebserver.com/upgrade/ *you shpuld reverse all skin customations* during the update when asked 7. Delete the "install" and "upgrade" folder (or what i alwys do is chmod them to 000) Have fun with your IPB 2.1.3 ### When everthing runs wrong / nothing works ### 1. Delete your complete boardfolder and copy back the backup we made back to its location # rm -r <ipb 2.1.3 folder> # cp -rp /boarbackup/<BOARDFOLDER> /path_to_your_board/ 2. Delete the ipb 2.1.3 database: # mysql -u root -p and in the mysqlshell: mysql# drop database <ipb databasename>; mysql# quit; 3. Insert the database backup we made for ipb 2.0.x into mysql:

cat BACKUP_IPBBOARD_2.0.X.SQL \

	 | mysql \

	 -uroot \

	 -p$PASSWORD \

	 -hlocalhost \

	 --max_allowed_packet=16M



Now everything is back to ipb 2.0.x again


I take no guarantee that this will work with your board / server. it worked on my board / server (gentoo linux) very well.

Posted

Sould be mutch easier if you said => delete updated database, re-upload and ecxecute old database, reupload your old board.



Job iz done!



Keep it eazy! (to many information for nothing)




Im feeling soooooooo down i paid something is worth it nothing.



CORRECT Me IF YOU CAN!



Thank you



Not everyone is growed up with a linux/mysql shell :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...