PHP and Actionscript 3.0 issue
Hi,
I have a MySql database with some content that I want to
access from my Flash movie through a PHP script. I actually get
things to work (sort of) since I can pass content from the
database, through the PHP script into my Flash movie - but the
problem is the formatting of the content being sent to Flash. The
string that I want to send is written in PHP (UTF-8 encoded) as
follows:
---PHP---
$file_list = array();
array_push($file_list, "å");
array_push($file_list, "ä");
$temp= implode(",",$file_list);
print_r("arrayen=$temp");
What I do (in this simplyfied example) is to create an array
and populate it with the Swedish letters 'å' and 'ä'.
These are just placeholders of course and are in my actual code
retrieved from my database.
So, "arrayen=$temp" is sent to my Flashfile, where the code
looks as follows:
---Flash AS 3.0---
var variables:URLVariables = new URLVariables();
var vrequest:URLRequest = new URLRequest();
vrequest.url = "retrieveData.php";
vrequest.method = URLRequestMethod.POST;
vrequest.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, completeHandler);
try {
loader.load(vrequest);
} catch (error:Error) {
trace("Unable to load URL");
function completeHandler(event:Event):void {
var loader2:URLLoader = URLLoader(event.target);
var variables:URLVariables = new URLVariables(loader2.data);
trace(variables);
The outcome of the last 'trace' should be something like
"arrayen=å,ä"
but unfortunately it comes out as:
%0A%0A%0Aarrayen=%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%20% 0A%0A%0A%0A
OK, I believe my problem is obvious - how on earth do I get
it right?
Thanks a milion in advance!
.cristian
Hi, and thanks for your reply.
Actually, I think I got it to work in a pretty strange way...
There was something dodgy happening in the PHP script,
something indicated by others in different forums (see some of the
comments further down on:
http://se.php.net/urlencode).
I read somewhere that PHP had an issue with urlencoding and one
solution was to urlencode twice. Having done that, things started
to happen on the Flash side, but there was still some strange
formatting going on. Eventually I solved it by changing my
flash_encode() to:
PHP Code:
// --------------------------------------------------- ENCODE
FOR FLASH
function flash_encode ($input) {
return rawurlencode(rawurlencode(($input)));
That is, using 'rawurlencode()' and no utf8_decode().
In my Flash file I then simply had to unescape twice:
AS Code:
function completeHandler(event:Event):void {
var loader2:URLLoader = URLLoader(event.target);
loader2.dataFormat = URLLoaderDataFormat.VARIABLES;
var variables2:URLVariables = new
URLVariables(loader2.data);
var temp:String = String(variables2);
trace(temp); // just to check the "raw" data
var temp2 = unescape(temp);
var temp3 = unescape(temp2);
trace(temp3);
The output is now as expected!
Please note that I am not very skilled in programming so if
anyone has a better solution please submit it. I'll use this for
now though
.c
Similar Messages
-
I want to dynamically change the tintColor of a movie clip,
named toolboxMC_bg based on the value of a php variable $style set
in s3.php. I'm using actionscript 3. Please help. I just don't know
how to get flash to get the value of $style. I have attached the
code I have so far. Thanks.I feel that the problem lies with the actionscript not
receiving the php variable. I have changed the php to read the
cookie value. Please help! I get no errors in the browser and I get
undefined in the output window. However I do expect to get
undefined because I don't expect that flash could read the cookie.
That part actually makes sense. I know that the color change area
of the code works because if I change the default value I see a
change in color. Flash just cannot read my variable for some
reason. When you view the php page in the browser it successfully
reads the cookie and shows (in this case the cookie is red)
flashstyle=red. I have attached the php and actionscript.
Thanks. -
MariaDB, PHP, and mysql_connect() issue on Installation scripts
I searched for this issue and turned out nothing..
I am using an installation script on my web server and i get this error:
function mysql_connect() not found:
Your system does not appear to have mysql available within php
I followed the wiki and have uncommented the following lines
extension=pdo_mysql.so
extension=mysqli.so
extension=mysql.so
I have also restarted the httpd daemon several times. I am using MariaDB because I know arch is dropping mysql. I followed the MariaDB wiki too and have it set-up properly.
Here is my "mysqli" section of phpinfo()
MysqlI Support enabled
Client API library version mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Active Persistent Links 0
Inactive Persistent Links 0
Active Links 0
Directive Local Value Master Value
mysqli.allow_local_infile On On
mysqli.allow_persistent On On
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket /var/run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.reconnect Off Off
and here is "mysqlnd" in phpinfo()
mysqlnd
mysqlnd enabled
Version mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Compression supported
SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 31536000
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensions mysqli
MySQL is running as I have set-up a database and user for this installation script.I dropped to the command line and tried to run php and realized that mysql.so was named mssql.so..
so for anyone that has this issue, when you install php, unless they change it next release, that's a typo you have to fix when uncommented the mysql extension
Last edited by evil (2013-03-31 19:34:12) -
Getting stylesheets to work in header.php and files associated with it
Let's say I created a header.php file in my includes folder. And I include it in my index.php file in the site root directory.
Then in the header.php file, I have a link to the style sheet.
The issue I've always found is that you can't get the header.php file to apply the stylesheet.
I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site. (And I forget....)
So anyways, I came up with this code today in an attempt to overcome this. Here is my header file so far:
"; } else echo ""; ?>
So here is what it is doing:
1. It is creating a variable called $directory which is equal to the current directory.
2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
This works perfectly fine....in Live view. Both the header.php and index.php will format the header in live view. Neither though will format it in Design view. Which sucks cause I was pretty happy that I came up with this code on my own.
The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View.
Does anyone know of a way to get this script to run in Design View? Or maybe some suggestions on editing this code to get it to work in Design View?
Thanks!>The issue I've always found is that you can't get the header.php file to apply the stylesheet.
Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work. -
all.
We have oracle 9i release 2 databse installed and acced by clients using Forms 6i.
Due to some reasons we are shifting to Oracle 10g rel 1 and PHP as front end.
The new server machine has windows 2000 professional with service pack 4.
i installed orcl 10g rel1 on it. I configured the PHP and place the application pages on the folder and it is workign fine.
Now the problem is that when i try to access the application from my computer it shows me the error as
"Database connection error." This error is hardcodded by me , if there is any issue in connectivity , i have hardcoded that my user will see this error.
a few of the clients when they type the machine name on thier browsers see this error
" PHP Warning: Unknown(): Unable to load dynamic library './extensions/php_oci8.dll' - Access is denied. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library './extensions/php_oracle.dll' - Access is denied. in Unknown on line 0 "
My database clients werent also connecting but the following action has caused the fault to be corrected.
wat i did was that i replace the
host=(endsys.eapa.com)
to host= (ip address).
But still i am unable to connect to the application via my webbrowser.
I have installed PHP correctly, IIS correctly,
may b there is anything to do with the permissions.
Kindly suggest something so that i may able to bring up the application
RegardsHi: Im running IIS on a Windows Server 2000, PHP Version 4.4.2 and I have installed on the same server my Oracle 9 DB.
I have edited php.ini like:
extension_dir = "C:\PHP4\extensions"
extension=php_oci8.dll
I have run dependency walker in order to ensure all dependencys are ok.
I have granted full access to Everybody to the PHP directory
But im having the following error:
PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP4\extensions\php_oci8.dll' - Access is denied. in Unknown on line 0
Does anybody know where i should start troubleshooting this?
Thanks, Lautaro Dolberg -
MySQL php and CHARACTER SET error
Still very new to php and MySQL, in fact this is my first
site using it.
I have got an issue with displaying characters, namely the
£ sing, all I get is an ? displayed.
I have been told to use, utf8 in the database field but this
has not helped cure the problem.
I'm building the site in DW CS3 and it's all running off my
Mac using OS X 10.5.1 and the built in php client.
Could anyone show me the right way to go?Ok I think my IQ is falling me, it's been a long week.
<?php header('Content-type: text/html;charset=utf-8');
?>
Is the first line of code on the test page I have got
running. I have no error but I also have no £ sings.
Here is the live page:
http://www.epos-acoustics.com/test.php
The page code:
<?php header('Content-type: text/html;charset=utf-8');
?>
<?php require_once('Connections/epos.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_epos, $epos);
$query_rs01 = "SELECT * FROM epos_shop ORDER BY my_shop_id
ASC";
$rs01 = mysql_query($query_rs01, $epos) or
die(mysql_error());
$row_rs01 = mysql_fetch_assoc($rs01);
$totalRows_rs01 = mysql_num_rows($rs01);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>shop text test</title>
</head>
<body>
<?php do { ?>
<table width="600" border="0" cellspacing="2"
cellpadding="2">
<tr>
<td width="92">Product name: </td>
<td width="494" colspan="2"><?php echo
$row_rs01['my_shop_product']; ?></td>
</tr>
<tr>
<td valign="top">Description:</td>
<td colspan="2"><?php echo
$row_rs01['my_shop_text']; ?></td>
</tr>
<tr>
<td>Price:</td>
<td colspan="2"><?php echo
$row_rs01['my_shop_price']; ?></td>
</tr>
<tr>
<td height="30" colspan="3"> </td>
</tr>
</table>
<?php } while ($row_rs01 = mysql_fetch_assoc($rs01));
?></body>
</html>
<?php
mysql_free_result($rs01);
?>
Am I missing the point or do I have something wrong with the
table or field? -
Set a max Upload quantity dreamwaver php and mysql
The issue,
using dreamweaver php and mysql I Would like to set a max
quantity limit on file upload per user. i.e max 5 uploaded images
allowed per user.
Here is a basic example of the creation. Just need the
implementation of how to set a max upoad limit.
create table authors(
id int not null auto increment primary key,
name varchar(10) not null
image_quantity tinyint(1),
create table images(
aid int not null,
image_filename varchar(50),
foreign key (aid) references authors(id)
User id 1 would upload a file into the table images from a
php or html webpage. i.e set values "thomas.jpeg", "1"
i want to set a max upload of 5 images per user. (a folder
for each user id will be created and photos stored in that).
I could add a field of max_upload tinyint(1) to the table
users and construct a php script that could add the amount of
images entered by a user into the images table and add a +1 to each
added. Problem is i dont know how to create that script or mysql
querty in order to enter into a recorset for example.
As anyone have any ideas of the best way to set a max
quantity limit of uploads.
Thank you.The issue,
using dreamweaver php and mysql I Would like to set a max
quantity limit on file upload per user. i.e max 5 uploaded images
allowed per user.
Here is a basic example of the creation. Just need the
implementation of how to set a max upoad limit.
create table authors(
id int not null auto increment primary key,
name varchar(10) not null
image_quantity tinyint(1),
create table images(
aid int not null,
image_filename varchar(50),
foreign key (aid) references authors(id)
User id 1 would upload a file into the table images from a
php or html webpage. i.e set values "thomas.jpeg", "1"
i want to set a max upload of 5 images per user. (a folder
for each user id will be created and photos stored in that).
I could add a field of max_upload tinyint(1) to the table
users and construct a php script that could add the amount of
images entered by a user into the images table and add a +1 to each
added. Problem is i dont know how to create that script or mysql
querty in order to enter into a recorset for example.
As anyone have any ideas of the best way to set a max
quantity limit of uploads.
Thank you. -
Hi,
I need to display a Username in a Flash Banner in my website. The Site is PHP and the header is made in Flash. My requirement is that, when a user Logs in, his name should be displayed in the Top of the site (in the Flash banner here) like "Welcome User". Is it possible ? I have the PHP file which displays username. All I need is that to merge it to the flash banner (through actionscript, isnt it ?)
Please help me
Thanks
Vipin
[email protected]Please don't cross post in these forums.
-
Hi there,
Im currently creating a login system using php and sql. At the moment i have it that when the user registers their information (i.e username,password) it gets stored in the database. The part that i am having an issue with is that when the user logs in, I want to retrive the relavant data from the database and compare it to what they have entered into the login section. I persume i have to use an sql query something like (SELECT username, password FROM Users) but not sure how to compare it to what the user has entered.
Any help you be greatly appreciated.
Thanks,
BarrieHi,
does it mean that you´re not using Dreamweaver, which comes with a Login User server behavior which would do all the heavy lifting and generate a correct query ? Just asking, because you posted in the Dreamweaver Application Development forum -
PHP and Actionsripting...
Hey fellow Flash friends... I have a flash banner that I have
sitting on my gaming clans website I did. The forums are PHP and
when ever anyones views a new topic or post of does anything to
refresh the browser it reloads the movie and plays again. I'd like
the movie to just play once when you first get there and not
everytime someone post something. Is there a actionscript of some
way around this? I've searched everywhere and have come to a wall.
LOL Any help will be appreciated thanks!
http://www.shadowops.org/Forums/index.phpThere is an even easier way to do this without using cookies.
Use Session IDs. PHP should be able to keep the session OR keep an
active variable from one page to another. Use the variable to
control the flash video.
I am presuming that you will want the movie to continue
playing in the same exact place as they left.
I don't know about AS2 or 3 if it can handle this however,
here is how you would accomplish it.
IF AS3 can accomplish this than here is what you can do.
1. When the movie is playing, IF AS3 can detect when the
movie stops have it send out the frame number and the mc name to
PHP.
Store that in PHP variables.
Transfer those variables via POST and GET methods to the
reloading page.
Check to see if those variables are active. Send those
variables back to the flash movie on the refreshed page using flash
vars and tell the ActionScript to start the same exact movie and
the same exact frame.
That is the only way that I can think of doing that.
Wayne -
CS5 : tabs for .php and .css but spaces for .html ?!?
Hello
my problem is simple
I modify the shorcuts for text indent to Tab by changing the files Menus.xml and the shorcuts file (these manips are painfull !). I have set 2 spaces as text indent in the preferences BUT it persists to add 2 tabs in php and css files !! in html-assimilated files no problem : 2 spaces
Is Dreamweaver for pro or .... ?Hello
lots of answers fo other thread but here...
Please, Did somebody have the same issue ?
Best regards -
Flash / Actionscript URL Request Issue
Morning Smart Peoples.
So I have a dangerously rudimentry knowledge of Flash and Actionscript and the website I tend to is giving me issues.
We have a small Flash Movie on the site that cycles through 3 pictures and each picture links to the corresponding website when you click on it. (To view : http://www.bostonleather.com : Top Right Corner) I updated the links in the Actionscript, and changed the pictures (not my first time doing either), but this time it didn't work so well.
First time it cycles through, everything works as planned. After it loops however, all additional Mouse Event's link to the last URL in the movie.
Frame 1 Actions
play();
btn_inv.addEventListener(MouseEvent.CLICK, mouseClick);
function mouseClick (event:MouseEvent):void
var request = new URLRequest("http://www.kanoycommunications.com/");
navigateToURL(request,"_blank");
Other Frame Actions are identical to this minus the "play();" function naming and URL
Final Frame is simply
gotoAndPlay(1);
Thanks.
MarcIf you are assigning different event listeners to the same button then that could be your problem. You should only need to assign that listener once in frame 1. Similarly, you should only need to define the function in frame 1, but pull the request declaration out of the function and then assign it a new URLRequest value at the different point along the timeline...
Frame 1 Actions
play();
var request = new URLRequest("http://www.kanoycommunications.com/");
btn_inv.addEventListener(MouseEvent.CLICK, mouseClick);
function mouseClick (event:MouseEvent):void
navigateToURL(request,"_blank");
Frame elsewhere Actions
request = new URLRequest("http://www.someotherurl.com/"); -
Wordpress, XAMP and Dreamweaver Connection database issues
Hellou everyone!
I'm in a setup process of wordpress website in Dreamweaver. Using XAMP to create a MySQL server to do this.
The issue is the dead blank page erro 404 when i go to the Live preview.
The connection setup works fine, the firewall is off
as a exemple, if I dowload a the from the locahost wordpress dashboard, i can see the theme on Dreamweaver files on xampp directory folders.
=
I used not the manual installer of Wordpress, but the Bitnani .exe installer, this installer dont use anymore the htdocs folder in XAMPP directory but he use the folder call "app", (i dont if this make any difference cuz most of tutoriais that i saw ask for you use the htdocs folder or the www folder)
The config.php use this configurations
The database on PHPMyAdmin looks fine
But when i click on index.php or any other php file and go "Live" this is the screen that appear to meI'm already Copy the files "MMHTTPDB.php" and "mysql.php" into _mmServerScripts folder on the remote server.
And the privileges looks O.K -
[Solved]Updated system, and dealing with glibc issue.
I neglected to update/use Arch for quite some time, and decided to last night. I quickly encountered problems and I've read https://www.archlinux.org/news/filesyst … equired-1/, https://www.archlinux.org/news/the-lib- … a-symlink/, https://www.archlinux.org/news/fontconf … -required/, http://allanmcrae.com/2012/07/updating- … e-install/, and many threads about issues with filesystem and/or glibc.
First, I followed the instructions to resolve the issue with fontconfig.
<read various threads>
Then, I landed here: https://wiki.archlinux.org/index.php/De … iki:usrlib. I installed glibc-2.16.0-1-x86_64 using the instructions provided. IIRC, I was still experiencing conflicts with filesystem. I came across a thread where a user stated that instructions from Allan McRae's blog (from the link at the top) allowed him to upgrade his system. I tried it out, and I got around the filesystem issue as well as the issue with dependencies linked to tzdata, etc. My issue now lies with the pacman -Su step:
[asdf@asdf ~]$ sudo pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
Targets (1): glibc-2.16.0-5
Total Installed Size: 37.63 MiB
Net Upgrade Size: 0.05 MiB
Proceed with installation? [Y/n] y
(1/1) checking package integrity [###############################] 100%
(1/1) loading package files [###############################] 100%
(1/1) checking for file conflicts [###############################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.
Following Issue 2 under https://wiki.archlinux.org/index.php/De … iki:usrlib, I entered
$ grep '^lib/' /var/lib/pacman/local/*/files
. The output was:
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/pam_ck_connector.so
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/console-kit-log-system-start.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-daemon.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-restart.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-start.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-linux-x86-64.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libSegFault.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc.so.6
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm.so.6
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libmemusage.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpcprofile.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread.so.0
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db-1.0.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil.so.1
/var/lib/pacman/local/hal-0.5.14-6/files:lib/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/90-hal.rules
/var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/
/var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/ld-linux.so.2
/var/lib/pacman/local/ntfs-3g-2012.1.15-4/files:lib/
Being a newb, I didn't want to do something stupid, so I didn't take any action here..
I proceeded on with trying
find /lib -exec pacman -Qo -- {} +
The output was:
error: cannot determine ownership of directory '/lib'
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libSegFault.so is owned by glibc 2.16.0-1
/lib/ld-linux.so.2 is owned by lib32-glibc 2.14-5
/lib/ld-2.16.so is owned by glibc 2.16.0-1
/lib/libpthread.so.0 is owned by glibc 2.16.0-1
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/librt-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/ufw'
error: No package owns /lib/ufw/user6.rules.pacsave
error: No package owns /lib/ufw/user.rules.pacsave
error: cannot determine ownership of directory '/lib/udev'
error: cannot determine ownership of directory '/lib/udev/rules.d'
/lib/udev/rules.d/90-hal.rules is owned by hal 0.5.14-6
/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libnss_files-2.16.so is owned by glibc 2.16.0-1
/lib/libc-2.16.so is owned by glibc 2.16.0-1
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/libutil-2.16.so is owned by glibc 2.16.0-1
/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1
/lib/libpthread-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
/lib/libc.so.6 is owned by glibc 2.16.0-1
/lib/libcrypt-2.16.so is owned by glibc 2.16.0-1
/lib/libresolv-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libcidn.so.1 is owned by glibc 2.16.0-1
/lib/libresolv.so.2 is owned by glibc 2.16.0-1
/lib/libmemusage.so is owned by glibc 2.16.0-1
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/security'
/lib/security/pam_ck_connector.so is owned by consolekit 0.4.5-2
/lib/libanl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-1
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1
/lib/libm-2.16.so is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/systemd'
error: cannot determine ownership of directory '/lib/systemd/system'
/lib/systemd/system/console-kit-daemon.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/kexec.target.wants'
/lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/basic.target.wants'
/lib/systemd/system/basic.target.wants/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/poweroff.target.wants'
/lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/halt.target.wants'
/lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/reboot.target.wants'
/lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
/lib/libdl-2.16.so is owned by glibc 2.16.0-1
/lib/libnsl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libthread_db.so.1 is owned by glibc 2.16.0-1
Again, I'm not sure what to do here.
On an irrelevant note, a red flag went up earlier. By some means, it appears I messed up Arch. Is there a chance I can fix the issue with the kernel or is the best option a reinstall?
(482/563) upgrading linux [################] 100%
>>> Updating module dependencies. Please wait ...
depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
==> Building image from preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
error: command failed to execute correctly
(498/563) upgrading nvidia [################] 100%
depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
If your card is from the 7xxx series or earlier, install nvidia-304xx
[asdf@asdf ~]$ ls -ld /lib
drwxr-xr-x 6 root root 4096 Dec 22 15:11 /lib
[asdf@asdf ~]$ mkinitcpio -p linux
==> Building image from preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
==> Building image from preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
Thanks in advance.
Last edited by illusory (2012-12-24 00:24:47)I checked out https://wiki.archlinux.org/index.php/Initramfs, and I'm not sure what to do. I rebooted a few times in attempt to get things going. I'm assuming I need to start by logging in to the live CD as root and mounting the sda in which Arch is installed? I don't know how to mount root nor know the complete title for the Arch partition (sda x,x). Sorry for the hassle.
Edit: Found https://wiki.archlinux.org/index.php/Ch … partitions. Be back in a bit.
I currently have the temporary filesystems mounted, chrooted, and am in bash.
# mkinitcpio -p linux
doesn't work. I tried
mkinitcpio -g ..... 3.6.10-1-ARCH
and I received something about 3.6.10 and a module directory.
Last edited by illusory (2012-12-23 23:26:00) -
I am very annoyed at the Creative Cloud set up and the non-stop issues and problems
I am very annoyed at the Creative Cloud set up and the non-stop issues and problems! I am paying monthly for this service and it is constantly failing in some way! So far in three months I have had to uninstall and re-install Photoshop THREE times because it stopped working properly and Illustrator I have had to do that same to TWICE! That isn't including the other apps that have had issues! I don't have the time to constantly be un-installing and re-installing all or some of the Creative Cloud because your developers are not making a product that works consistently for the money you are charging! It is costing me more than just this monthly fee! And I am even less impressed with the fact that I cannot email someone for assistance in resolving these issues. Really Adobe?
Adobe contact information - http://helpx.adobe.com/contact.html may help
Maybe you are looking for
-
G'day All, Over the last week or so I have performed some test migrations using copies of our production Portal environment and here are some of the issues that I have encountered. ISSUE 1 - Performance Using a stopwatch (primitive, I know) I visited
-
Hi Experts, I have small issue with Mime object in webdynpro component?
Issue: i have imported mime object with some changes on existing mime object, But this is not reflecting it was displaying old one only,New changes are not reflecting. Requirement : We are creating buttons with some CSS style and that image type .PNG
-
Update changes to multiple files
Hi, we're creating an application with dozens of pages, which are all being saved as separate photoshop files. Is there a way to link photoshop files so that if I change a layer in one file, the similar layer is aumatically updated across the board?
-
Can anyone help explain this reoccurring sys log?
I've tried to track down this event that keeps on repeating so much its making my system log reach almost 60mb! Below is a copy of the log... Jun 21 07:14:15 localhost kernel: USBF: 16123.117 IOUSBInterface[0x2fadb00]::handleOpen failing because supe
-
Hi all, I am trying to install Oracle Application Server Form and Report Services on Linux (Application Server 4.0). Following the user manual (B19314-02 ), but I don't know how to download and update Red Hat Enterprise Linux AS release 4 (Update 1)