I need some help, really hard. Any help is welcomed!!

Started by kizko, December 10, 2009, 10:40:52 AM

Previous topic - Next topic

kizko

Default     Language Name     Character Set     Users     Locale
   English    ISO-8859-1    1541    en_US



Only this is there.

Norv

I think you may find useful to ask in the mod's support thread. I highly doubt you can successfully use emulate to a higher RC as RC2 from RC1.2. Emulate is rather to be used among minor versions, RCs are practically too different.
At least as far as edits in theme files are concerned, mods are most of the time not compatible from RC1.2 and RC2, so it just can't work. I would advise to upgrade to RC2, eventually ask the theme author about upgrading the theme, or perhaps take a look for another, instead.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

Quote from: Norv on December 23, 2009, 01:03:50 PM
I think you may find useful to ask in the mod's support thread. I highly doubt you can successfully use emulate to a higher RC as RC2 from RC1.2. Emulate is rather to be used among minor versions, RCs are practically too different.
At least as far as edits in theme files are concerned, mods are most of the time not compatible from RC1.2 and RC2, so it just can't work. I would advise to upgrade to RC2, eventually ask the theme author about upgrading the theme, or perhaps take a look for another, instead.

But why can i install other mods ? It still tells me that the package directory isn`t writeble, although i made it 777

Norv

It probably says that Packages directory or another directory is not writable.
On SMF 2.0, the error message also continues by telling that you can see what directory/file(s) are still not writable. Click on the link to check it out.

Also, please make sure you have a "temp" subdirectory chmodded as writable, too, in Packages.

However, you *can* have errors after installation, even if you manage to install, mods that are not compatible with your version.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

But how about if i Update to RC2. The error will disapear?
And what things will disapear after upgrading? I found the theme on RC2 :).

But i have other problem.
After i move the database on other host, and instal RC1.2 (the only with that theme working) i saw that it says there are some themes installed (the olds ones). But i didn`t really isntal them on new host. If i updgrade to RC2 it will disapear? I really want to make it clean.


Norv

You can remove themes from Admin > Themes and Layout (please see the tabs available on that page).

Some errors will disappear after the upgrade to RC2, like those related to an unfinished installation of RSS feeder mod. Note that before upgrading, it may be a good idea to uninstall your mods (you can ignore if you have errors at uninstalling this time, because all your files will be anyway overwritten with fresh files from RC2 upgrade package).
Please make sure you have a database backup before starting the upgrade.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

I can`t remove the mods. Should i continue?

It says the same thing, that the package file is not writable.

Norv

As you want. You can:
Option 1 - ignore it all, and upgrade to RC2. Make sure you have a database backup.
The upgrade is done by overwriting all your files, with files from large upgrade package, so mods are overwritten as well. They will still be "declared" as installed by SMF, but that should not be a problem.
Option 2 - in the end of the error message, doesn't it say something like "click here to see what files are not writable"? If it does, you can click there, and see what files you need to make writable, to be able to uninstall.

Please make sure you have a directory named "temp", writable, in ./Packages, too.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

#68
2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/index.template.php) is not within the allowed path(s): (/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs:/tmp)
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Themes.php
Line: 352


2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/index.template.php) is not within the allowed path(s): (/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs:/tmp)
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Themes.php
Line: 352


2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/index.template.php) is not within the allowed path(s): (/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs:/tmp)
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Themes.php
Line: 352


This were before creating a temp folder (already RC2). Now i`ve isntalled RSS Feed and it was ok :)


LE:
Why are the path like this /Themes/darkbreak_20rc2/images//new_some.png ?

kizko

Are you still online?

Why are the path like this /Themes/darkbreak_20rc2/images//new_some.png ?

Norv

About the errors: interesting.
Please note that: on your host's server there's a restriction, for PHP to run scripts only from your root directory, and temporary directory. That is okay (though not very often), and it was set correctly, by the looks of it.
However, I think you received errors because SMF was unable to create the temp directory itself, so without the temp directory, SMF was looking for the files (that should have been in temp), in root, instead.
(it was looking for "/index.template.php", instead of "/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Packages/temp/index.template.php")

Whenever you see that again, please remember to create the temp directory. Eventually, there's a mod you might already know, on the mod site, which doesn't allow its removal anymore.

Quote
Why are the path like this /Themes/darkbreak_20rc2/images//new_some.png ?
It seems your theme has written them that way. It shouldn't be a problem, besides being a little ugly, or is it?
Please notify the author of the theme, eventually.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

I can`t change the images. This is why i`m asking. If i replace them, they are the same (don`t know how).

Arantor

That suggests your browser is caching them, try using Ctrl-F5 to reload the page.

kizko

I saw the problem. For some reasons, now the are on.PNG not on.GIF (What PHP file do i have to edit for change this extensions?)

Arantor

BoardIndex.template.php and MessageIndex.template.php will have that in, IIRC.

kizko

I tryed install the Pretty Url mod and:

1.     Execute Modification     SMF2-0RC2/Sources.xml     Modification parse error
   2.    Execute Modification    SMF2-0RC2/Sources.xml    Modification parse error
   3.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   4.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   5.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error
   6.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error

It is a mod error ? Or something from SMF?

Norv

Do you have a temp directory in Packages, as mentioned before?

If not, you may want to make one, and please make sure to try installing the mod I mentioned (forbidding temp directory removal).
Then, after that mod is in place, please try installing again.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

Quote from: Norv on December 28, 2009, 07:10:01 PM
Do you have a temp directory in Packages, as mentioned before?

If not, you may want to make one, and please make sure to try installing the mod I mentioned (forbidding temp directory removal).
Then, after that mod is in place, please try installing again.


Yes it was there. (and i find some Preatty URL files in it).
I`ve installed that mod (with forbidding temp directory removal) and still got errors:

1.     Execute Modification     SMF2-0RC2/Sources.xml     Modification parse error
   2.    Execute Modification    SMF2-0RC2/Sources.xml    Modification parse error
   3.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   4.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   5.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error
   6.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error

Norv

Can you please try this: (./Sources/Subs-Package.php)
Code (find) Select

$current = unpack('a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155path', $header);

Code (add after) Select

if ($current['type'] == 5 && substr($current['filename'], -1) != '/')
$current['filename'] .= '/';
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

kizko

Quote from: Norv on December 28, 2009, 07:18:41 PM
Can you please try this: (./Sources/Subs-Package.php)
Code (find) Select

$current = unpack('a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155path', $header);

Code (add after) Select

if ($current['type'] == 5 && substr($current['filename'], -1) != '/')
$current['filename'] .= '/';


Done, but still:

1.     Execute Modification     SMF2-0RC2/Sources.xml     Modification parse error
   2.    Execute Modification    SMF2-0RC2/Sources.xml    Modification parse error
   3.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   4.    Execute Modification    SMF2-0/BoardsAndTopics.xml    Modification parse error
   5.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error
   6.    Execute Modification    SMF2-0RC2/Themes.xml    Modification parse error

Advertisement: